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
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc