3 ms·
> Maybe I'm missing something, but it seems like if a type has a lot of optional fields, which is pretty common, you have to explicitly pass None for all of the
by ghostwriter 4y ago
> Maybe I'm missing something, but it seems like if a type has a lot of optional fields, which is pretty common, you have to explicitly pass None for all of them.
You can specify defaults for you record types via Type/default pattern
https://github.com/Gabriella439/dhall-manual/blob/develop/manuscript/03-Defaults.md https://github.com/Gabriella439/dhall-manual/blob/develop/ma...