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.


Versions 0.1, 0.2,,,,,,,, 0.4
Dependencies base (>=3 && <5) [details]
License PublicDomain
Author James Cook <>
Maintainer James Cook <>
Stability provisional
Category Data, Dependent Types
Home page
Source repository head: git clone git://
Uploaded Fri Sep 2 23:46:52 UTC 2016 by JamesCook
Distributions Debian:, LTSHaskell:, NixOS:0.4, Stackage:, Tumbleweed:
Downloads 4154 total (24 in the last 30 days)
0 []
Status Docs pending
Build status unknown [no reports yet]


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


Maintainer's Corner

For package maintainers and hackage trustees