roc icon indicating copy to clipboard operation
roc copied to clipboard

Report errors for attempting to derive decoding of records with optional field types

Open ayazhafiz opened this issue 3 years ago • 0 comments

Since optional record fields like y ? Str are polymorphic at compile-time and have no runtime representation, we can't derive decoders for them, because you can't ever produce a value with an optional record field!

ayazhafiz avatar Aug 09 '22 15:08 ayazhafiz