-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnamed-sop.cabal
60 lines (53 loc) · 2.03 KB
/
named-sop.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
55
56
57
58
59
60
name: named-sop
version: 0.3.0.0
category: Data
homepage: https://github.com/sjsch/named-sop
synopsis: Dependently-typed sums and products, tagged by field name
description:
Sums and Maps (products) indexed by a typelevel map of their field
(or constructor) names and types. They can be combined and split
again; their typelevel map is sorted to ensure that the end result
is independent of the order you combine it in.
.
"Data.NamedSOP.Generic" contains functions for automatically
converting between types with a Generic instance and named sums of
products:
.
> >>> data A = C { a :: Int, b :: Bool }
> >>> | D Int Bool deriving (Generic)
> >>> :t genSum (C 3 True)
> NSum
> '[ "_C" ':-> NMap '[ "a" ':-> Int, "b" ':-> Bool],
> "_D" ':-> NMap '[ "_1" ':-> Int, "_2" ':-> Bool]]
license: MIT
license-file: LICENSE
author: Sam Schweigel
maintainer: Sam Schweigel <[email protected]>
build-type: Simple
cabal-version: 2.0
tested-with: GHC ==8.8.1
extra-source-files: CHANGELOG.md, README.md
source-repository head
type: git
location: https://github.com/sjsch/named-sop
library
exposed-modules: Data.NamedSOP.Type
, Data.NamedSOP.Map
, Data.NamedSOP.Sum
, Data.NamedSOP.Generic
build-depends: base ^>= 4.13.0.0
, singletons ^>= 2.6
, text ^>= 1.2.3.1
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -Werror=incomplete-patterns
test-suite named-sop-spec
type: exitcode-stdio-1.0
main-is: Tests.hs
hs-source-dirs: test
build-depends: base
, named-sop
, tasty
, tasty-hunit
default-language: Haskell2010
ghc-options: -Wall -Werror=incomplete-patterns