Open paulyoung opened 4 years ago
My motivation for using named fields is in an attempt to have the required
field populated and managed for me.
I’m hoping that I can later use that to know which type arguments were a Maybe
looks like a legitimate bug to me. do you have time to work on fixing this?
@Gabriel439 suggested that this could potentially be fixed using the same approach as in https://github.com/dhall-lang/dhall-haskell/issues/1660
I linked to the issue but the PR that fixes it is https://github.com/dhall-lang/dhall-haskell/pull/1825
It looks like those changes allow erroring out and breaking the loop but don't actually allow generic deriving of recursive data types.
This data type:
Produces this JSON:
However, if I attempt to name the field like this:
I get: