forked from obsidiansystems/dependent-sum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependent-sum.cabal
54 lines (45 loc) · 1.91 KB
/
dependent-sum.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: dependent-sum
version: 0.5
stability: provisional
cabal-version: >= 1.6
build-type: Simple
author: James Cook <[email protected]>
maintainer: James Cook <[email protected]>
license: PublicDomain
homepage: https://github.com/mokus0/dependent-sum
category: Data, Dependent Types
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, 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.
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
extra-source-files: examples/*.hs
source-repository head
type: git
location: git://github.com/mokus0/dependent-sum.git
Library
hs-source-dirs: src
exposed-modules: Data.Dependent.Sum
Data.GADT.Compare
Data.GADT.Show
Data.Some
if impl(ghc < 7.8)
other-modules: Data.Dependent.Sum.Typeable
build-depends: base >= 3 && <5,
universe >= 1 && < 2
if impl(ghc >= 7.2)
ghc-options: -trust base