
12 Jun
2019
12 Jun
'19
1:26 a.m.
Yes, "evaluate" does the trick. Thank you.
On Tue, Jun 11, 2019 at 2:39 AM Francesco Ariis
Hello Hilco,
On Mon, Jun 10, 2019 at 08:44:30PM -0700, Hilco Wijbenga wrote:
f :: Whatever f = error "This should never happen."
spec :: Spec spec = describe "f" $ it "error" $ return f `shouldThrow` anyErrorCall
import qualified Control.Exception as E
and
E.evaluate tt' f `shouldThrow` anyErrorCall
should work. Does this work? -F _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners