ekmett / ersatz

A monad for interfacing with external SAT solvers
Other
62 stars 15 forks source link

automatic derivation of `instance Codec`? #46

Open jwaldmann opened 4 years ago

jwaldmann commented 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 ...

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.