Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

comment tweaks; -threaded test

darcs-hash:20090529233130-fb517-6e1f48057a6de530f69b124be12f9d882e17d3ed.gz
  • Loading branch information...
commit 176d95b3fd754a6d720cccd3af6ed5448a69ade5 1 parent 15ec0f7
@conal conal authored
Showing with 11 additions and 3 deletions.
  1. +1 −0  src/Data/Unamb.hs
  2. +3 −1 tests/Tests.hs
  3. +7 −2 unamb.cabal
View
1  src/Data/Unamb.hs
@@ -160,6 +160,7 @@ putCatch act v = onException (act >>= putMVar v . Just) (putMVar v Nothing) `cat
, Handler $ \ PatternMatchFail {} -> return ()
-- This next handler hides bogus black holes, which show up as
-- "<<loop>>" messages. I'd rather eliminate the problem than hide it.
+ -- TODO: Remove and stress-test (e.g., reactive-fieldtrip)
, Handler $ \ NonTermination -> print "Unamb.hs: Bogus black hole?" >> throwIO NonTermination
]
View
4 tests/Tests.hs
@@ -31,7 +31,9 @@ batch = ( "FRP.Reactive.Unamb"
, ("idempotence" , idempotent2 unambt)
, ("commutative" , isCommutTimes 0.00001 unambt)
, ("associative" , isAssocTimes 0.00001 unambt)
- -- These still get tested 500 times. Pointless, but the best I can do on short order. - Svein
+ -- These still get tested 500 times. Pointless, but the best I can do on short order. - Svein
+ -- TODO: Replace the A/b and B/a tests with something simpler. At the
+ -- very least, add a comment here.
, ("recursive A" , eq b 30)
, ("recursive B" , eq a 42)
]
View
9 unamb.cabal
@@ -1,5 +1,5 @@
Name: unamb
-Version: 0.1.9
+Version: 0.2
Cabal-Version: >= 1.2
Synopsis: Unambiguous choice
Category: Concurrency, Data, Other
@@ -13,7 +13,9 @@ Description:
.
&#169; 2008 by Conal Elliott; BSD3 license.
.
- Contributions from: Luke Palmer, Spencer Janssen, Sterling Clover, Bertram Felgenhauer, Peter Verswyvelen.
+ 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
@@ -53,3 +55,6 @@ Executable test-unamb
build-depends: QuickCheck, checkers
else
buildable: False
+ ghc-options: -threaded
+
+-- Tests run /much/ faster with -threaded .
Please sign in to comment.
Something went wrong with that request. Please try again.