dependent-sum: Dependent sum type

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

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.

Modules

[Last Documentation]

  • Data
    • Dependent
      • Data.Dependent.Sum
    • GADT
      • Data.GADT.Compare
      • Data.GADT.Show
    • Data.Some

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Versions [RSS] 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, 0.7.1.1, 0.7.2.0 (info)
Dependencies base (>=3 && <4.9.1) [details]
Tested with ghc ==7.0.4, ghc ==7.2.2, ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.1, ghc ==7.11
License LicenseRef-PublicDomain
Author James Cook <mokus@deepbondi.net>
Maintainer James Cook <mokus@deepbondi.net>
Revised Revision 2 made by HerbertValerioRiedel at 2017-04-16T22:03:59Z
Category Data, Dependent Types
Home page https://github.com/mokus0/dependent-sum
Source repo head: git clone git://github.com/mokus0/dependent-sum.git
Uploaded by JamesCook at 2016-05-14T21:57:52Z
Distributions Arch:0.7.2.0, Debian:0.7.1.0, LTSHaskell:0.7.2.0, NixOS:0.7.2.0, Stackage:0.7.2.0
Reverse Dependencies 63 direct, 187 indirect [details]
Downloads 41731 total (84 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-11-25 [all 2 reports]