1. 4
    Working with cryptic error messages from ReasonML when writing custom Decco decoders.
    2m 8s

Working with cryptic error messages from ReasonML when writing custom Decco decoders.

InstructorMurphy Randle

Share this video with your friends

Send Tweet

Decco is a language extension that automatically generates JSON encoders and decoders from type signatures. When adding adding custom Decoders, the error messages that the compiler produces can be quite confusing. This lesson shows the viewer how to use explicit type signatures to narrow down where an error might be coming from in custom codec code. This same pattern can be applied whenever confusing error messages come from code that is written without explicit type signatures.