dependent-sum
Version 0.7.2.0 revision 2 uploaded by JohnEricson.
Package meta
- Synopsis
- Dependent sum type
- Description
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, eithertag = Left
andvalue :: a
ortag = Right
andvalue :: b
.This package allows you to define your own dependent sum types by using your own "tag" types.
- Author
- James Cook <mokus@deepbondi.net>
- Bug reports
- n/a
- Category
- Data, Dependent Types
- Copyright
- n/a
- Homepage
- https://github.com/obsidiansystems/dependent-sum
- Maintainer
- Obsidian Systems, LLC <maintainer@obsidian.systems>
- Package URL
- n/a
- Stability
- provisional