Package0.6.2.0DataDependent Types
dependent-sum
Dependent sum type
- Version0.6.2.0
- CategoryData, Dependent Types
- LicenceLicenseRef-PublicDomain
- AuthorJames Cook <mokus@deepbondi.net>
- MaintainerJames Cook <mokus@deepbondi.net>
- Homepagegithub.com/mokus0/dependent-sum
- Pinned byhackage dependent-sum 0.6.2.0
- Sourcehackage.haskell.org/package/dependent-sum-0.6.2.0
Modules
4 modulesDescription
A dependent sum is a generalization of a particular way of thinking about the Either type. Either a b can be thought of as a 2-tuple (tag, value), where the value of the tag determines the type of the value. In particular, either tag = Left and value :: a or tag = Right and value :: b.
This package allows you to define your own dependent sum types by using your own "tag" types.
Depends on
2 packages- base-4.22.0.0with GHC
- constraints-extras-0.3.2.1in this set