Popularity
1.0
Declining
Activity
0.0
Stable
0
2
0

Monthly Downloads: 24
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Generic     Generics    

generic-constraints alternatives and similar packages

Based on the "generic" category.
Alternatively, view generic-constraints alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of generic-constraints or a related project?

Add another 'generic' Package

README

Standalone deriving without boiler-plate

Write short and concise contexts based on generics.

Instead of writing boiler-plate standalone deriving clauses in the form of

deriving instance [Various Eq Constraints Here] => Instance Eq MyType

With generic-constraints you can use

deriving instance Constraints MyType Eq => Eq MyType

Or, using TH, simply

makeDeriving ''Eq ''MyType

And for several classes and types:

makeDerivings [''Eq, ''Ord, ''Show] [''MyType, ''MyOtherType]

Credits

This library was extracted from the one-liner library by Sjoerd Visscher and Xia Li-yao.