HUnit 1.2.0.0 on 6.8.1 vs 1.1.1 on 6.6.1
Ian Lynagh
igloo at earth.li
Mon Dec 3 10:23:06 EST 2007
On Wed, Nov 21, 2007 at 11:13:26AM -0800, Greg Fitzgerald wrote:
> On Windows, HUnit's assertions are not working - trace below in ghci 6.8.1and
> 6.6.1. Can others reproduce? Is this the right place to report bugs?
> Should I confirm a bug here and then create a ticket, create a ticket and
> that's it, or just mention it here and someone else creates a ticket?
>
>
> GHCi, version 6.8.1: http://www.haskell.org/ghc/ :? for help
> Loading package base ... linking ... done.
> > :m Test.HUnit
> > "abc" @=? "efg"
> Loading package HUnit-1.2.0.0 ... linking ... done.
> *** Exception: (unknown)
>
> / /_\// /_/ / / | | GHC Interactive, version 6.6.1, for Haskell 98.
>
> > "abc" @=? "efg"
> Loading package HUnit-1.1.1 ... linking ... done.
> *** Exception: user error (HUnit:expected: "abc"
> but got: "efg")
This is caused by a change in the HUnit library, from
assertFailure msg = ioError (userError (hunitPrefix ++ msg))
to
assertFailure msg = E.throwDyn (HUnitFailure msg)
We don't really have a good answer for where non-bootlib library bugs
should go at the moment. I don't know if Dean uses the sourceforge bug
tracker or not.
Thanks
Ian
More information about the Glasgow-haskell-users
mailing list