hanshoglund / iso-deriving

Derive instances through isomorphisms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iso-deriving

The GHC extension DerivingVia allow derivation through a specific morphism: coerce. This library helps generalizing DerivingVia to arbitrary morphisms. This is particularly useful for prototypes and specifications of instances.

See this blog post for more details!

About

Derive instances through isomorphisms

License:MIT License


Languages

Language:Haskell 93.4%Language:Nix 6.6%