dependent-sum: Dependent sum type
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
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.
Properties
Versions | 0.1, 0.2, 0.2.0.1, 0.2.0.2, 0.2.1.0, 0.3.1.0, 0.3.2.0, 0.3.2.1, 0.3.2.2, 0.4, 0.5, 0.6, 0.6.1, 0.6.2.0, 0.6.2.2, 0.6.2.2, 0.7.0.0, 0.7.1.0, 0.7.1.1, 0.7.2.0 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.9 && <5), constraints-extras (>=0.2 && <0.4), some (>=1.0.0.3 && <1.0.1) [details] |
License | LicenseRef-PublicDomain |
Author | James Cook <mokus@deepbondi.net> |
Maintainer | James Cook <mokus@deepbondi.net> |
Category | Data, Dependent Types |
Home page | https://github.com/obsidiansystems/dependent-sum |
Source repo | head: git clone https://github.com/obsidiansystems/dependent-sum |
Uploaded | by 3noch at 2020-03-24T01:46:20Z |
Modules
[Index] [Quick Jump]
- Data
- Dependent
- GADT
- Data.GADT.Compare
- Data.GADT.Show
- Data.Some
Downloads
- dependent-sum-0.6.2.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
- BertramFelgenhauer, JamesCook, JohnEricson, RyanTrinkle, abrar, 3noch, alexfmpe, maralorn, DanBornside, ymeister
For package maintainers and hackage trustees