unamb-0.2: unamb.cabal
Name: unamb
Version: 0.2
Cabal-Version: >= 1.2
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.
.
Project wiki page: <http://haskell.org/haskellwiki/unamb>
.
© 2008 by Conal Elliott; BSD3 license.
.
Contributions from: Luke Palmer, Spencer Janssen, Sterling Clover,
Bertram Felgenhauer, Peter Verswyvelen, and Svein Ove Aas.
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 by Conal Elliott
License: BSD3
Stability: experimental
build-type: Simple
Flag test
Description: Enable testing
Default: False
Library
hs-Source-Dirs: src
Extensions:
Build-Depends: base >= 4
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, checkers
else
buildable: False
ghc-options: -threaded
-- Tests run /much/ faster with -threaded .