Package0.7.2.0DataDependent Types
dependent-sum
Dependent sum type
- Version0.7.2.0
- CategoryData, Dependent Types
- LicenceLicenseRef-PublicDomain
- AuthorJames Cook <mokus@deepbondi.net>
- MaintainerObsidian Systems, LLC <maintainer@obsidian.systems>
- Homepagegithub.com/obsidiansystems/dependent-sum
- Pinned byhackage dependent-sum 0.7.2.0
- Sourcehackage.haskell.org/package/dependent-sum-0.7.2.0
Modules
1 moduleDescription
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
3 packages- base-4.20.2.0with GHC
- constraints-extras-0.4.0.2in this set
- some-1.0.6in this set