Re: Over loaded strings test case
Lennart Augustsson <[email protected]> Tue, 23 Jan 2007 09:22:22 -0500
| Newsgroups | gmane.comp.lang.haskell.cvs.all |
|---|---|
| Message-ID | <59516473-02BE-4578-A887-3319A6605E40__13891.2771283232$1169562187$gmane$org@augustsson.net> |
I actually think any use of the 'default' statement in Haskell is broken at the moment. Sorry. :( -- Lennart On Jan 23, 2007, at 09:01 , Simon Peyton-Jones wrote: > Ah yes I'd forgotten that. > Can you make a small test program that shows the problem, and > explain what the desired behaviour should be? > > Thanks > > | -----Original Message----- > | From: [email protected] [mailto:cvs-all- > [email protected]] On Behalf Of Lennart Augustsson > | Sent: 23 January 2007 13:55 > | To: Simon Marlow > | Cc: [email protected] > | Subject: Re: Over loaded strings test case > | > | Yes, there's a problem with default. Simon PJ said he would fix > | defaulting, but I guess he's not done that yet. Ask him, and if > | he's busy I can take a look again. The defaulting code is a bit > | convoluted. :) > | > | -- Lennart > | > | On Jan 23, 2007, at 06:58 , Simon Marlow wrote: > | > | > Ian Lynagh wrote: > | >> Hi Lennart, > | >> I've applied all the overloaded-strings patches. Thanks! > | > > | > Looks like there's one failure in nofib/spectral/power related to > | > this: > | > > | > ==nofib== power: time to compile Main follows... > | > /playpen/ghc/nightly/HEAD-cam-02-unx/i386-unknown-linux/compiler/ > | > stage3/ghc-inplace -H16m -O -O -Rghc-timing -H32m -hisuf hi -c > | > Main.hs -o Main.o > | > > | > Main.hs:15:0: > | > No instances for (IsString Double, > | > IsString Rational, > | > IsString Integer) > | > arising from a 'default' declaration at Main.hs:15:0-34 > | > Possible fix: > | > add an instance declaration for > | > (IsString Double, IsString Rational, IsString Integer) > | > when checking that each type in a default declaration > | > is an instance of class Num > | > > | > Cheers, > | > Simon > | > | _______________________________________________ > | Cvs-ghc mailing list > | [email protected] > | http://www.haskell.org/mailman/listinfo/cvs-ghc >