data-combinator-gen: Generate a special combinator from any data type.
This library provides a function to generate a special combinator from any data type (GADTs are not currently supported).
This was inspired by the recursion-schemes library where they have a function to automagically generate a base functor. Although, this new base functor data type has custom constructors and to define the *-morphism algebras turns into boring pattern matching.
So, this library provides a function called
makeCombinator that produces a
nice combinator to deal with data types as they were defined in terms of Pairs
( (,) ) and Sums (
Either). With this nice combinator we are able to view a
data type as its equivalent categorical isomorphism and manipulate it with an
interface similar as the
either function provided from
[Skip to Readme]
[Index] [Quick Jump]
- data-combinator-gen-0.1.0.4.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
For package maintainers and hackage trustees
- No Candidates
|Versions [RSS]||0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4|
|Dependencies||base (>=4.12 && <4.13), template-haskell (>=184.108.40.206 && <2.16) [details]|
|Uploaded||by bolt12 at 2019-05-26T12:34:59Z|
|Downloads||1907 total (11 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
|Status||Docs uploaded by user
Build status unknown [no reports yet]