Created
February 1, 2015 10:50
-
-
Save X1011/693547bd9bea29aa678b to your computer and use it in GitHub Desktop.
unit-test-example failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
codio@saturn-granite:~/workspace$ cabal test | |
Running 2 test suites... | |
Test suite spec: RUNNING... | |
Test suite spec: PASS | |
Test suite logged to: dist/test/unit-test-example-0.0.0-spec.log | |
Test suite doctest: RUNNING... | |
### Failure in Codec/Base64.hs:14: expression `decode (encode xs) == xs' | |
<interactive>:37:3: | |
Not in scope: ‘polyQuickCheck’ | |
In the splice: $(polyQuickCheck (mkName "doctest_prop")) | |
<interactive>:37:3: | |
GHC stage restriction: | |
‘polyQuickCheck’ is used in a top-level splice or annotation, | |
and must be imported, not defined locally | |
In the expression: polyQuickCheck (mkName "doctest_prop") | |
In the splice: $(polyQuickCheck (mkName "doctest_prop")) | |
Examples: 3 Tried: 3 Errors: 0 Failures: 1 | |
Test suite doctest: FAIL | |
Test suite logged to: dist/test/unit-test-example-0.0.0-doctest.log | |
1 of 2 test suites (1 of 2 test cases) passed. |
One other thing, pointed out to me tonight at the workshop, was that I forgot to mention the need to remove old config directories ~/.ghc
and ~/.cabal
when installing much newer versions of GHC and Cabal. For reference, I have updated my instructions accordingly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oops, didn't get notified of your response yesterday, only saw it reloading this page now.
I'm sorry about your installation problems. This is something the Haskell community is working hard on, so that there will be no need for the specific instructions I had to create and test out. 1.16 of Cabal is definitely way too old. Either 1.20 or 1.22 should work. And either GHC 7.8.3 or 7.8.4 should work, but not other versions.