dependent-sum: Dependent sum type

[ data, dependent-types, library, public-domain ] [ Propose Tags ]

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.

Versions [faq] 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.7.0.0, 0.7.1.0 (info)
Change log ChangeLog.md
Dependencies base (>=4.9 && <5), constraints-extras (>=0.2 && <0.4), some (==1.0.1.*) [details]
License LicenseRef-PublicDomain
Author James Cook <mokus@deepbondi.net>
Maintainer Obsidian Systems, LLC <maintainer@obsidian.systems>
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-25T21:11:24Z
Distributions Debian:0.4, LTSHaskell:0.4, NixOS:0.7.1.0, Stackage:0.4
Downloads 18725 total (401 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees