iso-deriving/README.md

11 lines
371 B
Markdown
Raw Normal View History

2020-04-16 14:50:03 +03:00
# iso-deriving
2020-04-16 21:29:07 +03:00
The GHC extension `DerivingVia` allow derivation through a specific morphism:
2020-04-23 13:44:35 +03:00
`coerce`. This library helps generalizing DerivingVia to arbitrary morphisms.
2020-04-16 21:29:07 +03:00
This is particularly useful for prototypes and specifications of instances.
2020-04-23 13:44:35 +03:00
See this [blog post][post] for more details!
[post]: https://www.tweag.io/posts/2020-04-23-deriving-isomorphically.html