Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Cabal dependencies problem (Jun HU)
2. HUnit - testing for failed pattern match (Xavier Shay)
----------------------------------------------------------------------
Message: 1
Date: Tue, 22 Feb 2011 11:43:03 +0100
From: Jun HU <[email protected]>
Subject: [Haskell-beginners] Cabal dependencies problem
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Hello everyone,
I've some problems with cabal dependency mechanism. For example,
when i try to install package "funsat",
:> cabal install funsat
it shows
====================== MSG =================== BGN
Registering parsec-3.1.1...
Installing library in /home/jhu/.cabal/lib/parsec-3.1.1/ghc-6.12.1
Registering parsec-3.1.1...
cabal: Error: some packages failed to install:
array-0.2.0.0 failed during the building phase. The exception was:
ExitFailure 1
bimap-0.2.4 depends on array-0.2.0.0 which failed to install.
containers-0.2.0.1 depends on array-0.2.0.0 which failed to install.
fgl-5.4.2.2 depends on array-0.2.0.0 which failed to install.
funsat-0.6.1 depends on array-0.2.0.0 which failed to install.
parse-dimacs-1.2 depends on array-0.2.0.0 which failed to install.
====================== MSG =================== END
while the current array package is on version array-0.3.0.2. The package
has back compatibility problem. Any advice is appreciated... thank you in
advance.
Sincerely,
Jun
------------------------------
Message: 2
Date: Tue, 22 Feb 2011 21:59:12 +1100
From: Xavier Shay <[email protected]>
Subject: [Haskell-beginners] HUnit - testing for failed pattern match
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
Given the following contrived function:
giveMeThree x
| x == 3 = True
How do I test with HUnit that 2 is invalid input?
giveMeThreeTests =
[ "Likes 3" ~: True ~=? giveMeThree 3
, "Dislikes 2" ~: ..... -- what?
]
I couldn't find anything mentioned in the HUnit user guide. References
to appropriate documentation appreciated.
Cheers,
Xavier
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 32, Issue 40
*****************************************