Open jwaldmann opened 4 years ago
(As #45, this is a request for comments)
Can we automate instance Codec a in some cases? Examples: if Decoded a is ...
instance Codec a
Decoded a
Example: https://gitlab.imn.htwk-leipzig.de/waldmann/misc/tree/master/cal/2019/12#room-for-improvement
Perhaps Decoded is going the wrong way for this: my goal is that I don't want to see the encoded type in the source, as it should be computed from the original (decoded) type.
Decoded
(As #45, this is a request for comments)
Can we automate
instance Codec a
in some cases? Examples: ifDecoded a
is ...Example: https://gitlab.imn.htwk-leipzig.de/waldmann/misc/tree/master/cal/2019/12#room-for-improvement
Perhaps
Decoded
is going the wrong way for this: my goal is that I don't want to see the encoded type in the source, as it should be computed from the original (decoded) type.