-
Notifications
You must be signed in to change notification settings - Fork 7
/
unamb.cabal
70 lines (60 loc) · 2.31 KB
/
unamb.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
61
62
63
64
65
66
67
68
69
70
Name: unamb
Version: 0.2.7
Cabal-Version: >= 1.6
Synopsis: Unambiguous choice
Category: Concurrency, Data, Other
Description:
unamb contains the \"unambiguous choice\" operator 'unamb', which
wraps thread racing up in a purely functional, semantically simple
wrapper. Originally a part of Reactive, I moved unamb to its own
package in order to encourage experimentation.
.
Note: unamb correctly implements lub (least upper bound) for flat
types only. I suggest using the lub package instead of unamb.
.
Project wiki page: <http://haskell.org/haskellwiki/unamb>
.
© 2008-2014 by Conal Elliott; BSD3 license.
.
Contributions from: Luke Palmer, Spencer Janssen, Sterling Clover,
Bertram Felgenhauer, Peter Verswyvelen, Svein Ove Aas, and Edward Kmett.
Please let me know if I've forgotten to list you.
Author: Conal Elliott
Maintainer: conal@conal.net
Homepage: http://haskell.org/haskellwiki/unamb
Package-Url: http://code.haskell.org/unamb
Copyright: (c) 2008-2014 by Conal Elliott
License: BSD3
Stability: experimental
build-type: Simple
source-repository head
type: git
location: git://github.com/conal/unamb.git
Flag test
Description: Enable testing
Default: False
Library
hs-Source-Dirs: src
Extensions:
Build-Depends: base >= 4 && < 5
-- , tag-bits >= 0.1.1 && < 0.2
Exposed-Modules:
Data.Unamb
ghc-options: -Wall
-- ghc-prof-options: -prof -auto-all
-- Support testing with a pattern from Sean Leather
-- Compilation works, but the executable segfaults:
-- both identity: Segmentation fault/access violation in generated code
-- I have no idea what could be going on there. The tests work fine
-- in ghci but segfault when compiled via "ghc --make Main" also.
Executable test-unamb
hs-source-dirs: src, tests
main-is: Tests.hs
-- Only enable the build-depends here if configured with "-ftest". This
-- keeps users from having to install QuickCheck 2 in order to use EMGM.
if flag(test)
build-depends: QuickCheck >= 2, checkers
else
buildable: False
ghc-options: -threaded
-- Tests run /much/ faster with -threaded .