-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathfastsum.cabal
More file actions
61 lines (56 loc) · 2.38 KB
/
fastsum.cabal
File metadata and controls
61 lines (56 loc) · 2.38 KB
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
61
cabal-version: 2.4
name: fastsum
version: 0.2.0.0
synopsis: A fast open-union type suitable for 100+ contained alternatives
homepage: https://github.com/patrickt/fastsum#readme
license: BSD-3-Clause
license-file: LICENSE
author: Rob Rix, Josh Vera, Allele Dev, Patrick Thomson
maintainer: patrickt@github.com
copyright: Rob Rix, Josh Vera, Allele Dev, Patrick Thomson 2016-2018
category: Data
build-type: Simple
extra-source-files: README.md
ChangeLog.md
tested-with: GHC == 8.2.2
GHC == 8.4.3
GHC == 8.6.3
GHC == 8.8.1
GHC == 8.10.7
GHC == 9.2.1
description:
This package provides Data.Sum, an open-union type, similar to the Union type
that powers the implementation of Oleg Kiselyov's extensible-effects library.
.
Unlike most open-union implementations, this type is very fast to compile,
even when the type-level list of alternatives contains hundreds of entries.
Membership queries are constant-time, compiling to a single type-level natural
lookup in a closed type family, unlike the traditional encoding of Union,
which relies on recursive typeclass lookups. As such, this type lends itself
to representing abstract syntax trees or other rich data structures.
.
This project is safe to use in production. Any performance problems at
compile-time or runtime should be filed as bugs.
flag build-examples
default: False
library
hs-source-dirs: src
exposed-modules: Data.Sum
Data.Sum.Populate
other-modules: Data.Sum.Templates
build-depends: base >= 4.7 && < 5
, deepseq >= 1.4 && <2
, ghc-prim >= 0.5 && <1
, hashable >= 1.2 && <2
, template-haskell >= 2.12 && < 2.20
default-language: Haskell2010
executable examples
hs-source-dirs: examples
main-is: Main.hs
build-depends: base, fastsum
default-language: Haskell2010
if !flag(build-examples)
buildable: False
source-repository head
type: git
location: https://github.com/patrickt/fastsum