The dependent-sum package

[Tags: library, public-domain]

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

Versions0.1, 0.2, 0.2.0.1, 0.2.0.2, 0.2.1.0
Dependenciesbase (>=3 && <5)
LicensePublicDomain
AuthorJames Cook <mokus@deepbondi.net>
MaintainerJames Cook <mokus@deepbondi.net>
Stabilityprovisional
CategoryData, Dependent Types
Home pagehttps://github.com/mokus0/dependent-sum
Source repositoryhead: git clone git://github.com/mokus0/dependent-sum.git
Upload dateTue Jun 24 18:57:23 UTC 2014
Uploaded byJamesCook
DistributionsDebian:0.2.1.0, NixOS:0.2.1.0
Downloads1562 total (164 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees