
4 Jun
2001
4 Jun
'01
4:34 a.m.
You need -fallow-undecidable-instances as well. Simon | -----Original Message----- | From: Saswat Anand [mailto:iscp9157@nus.edu.sg] | Sent: 02 June 2001 10:13 | To: 'glasgow-haskell-users@haskell.org' | Subject: Instance Declaration discrepancy | | | | class MyShow a where | sh :: a -> String | | instance (Integral a) => Show a where | sh = "Integer " + show a | | Ghc 5.00.1 (with -fglasgow-exts) does not accept the above, | while hugs with extensions has no problem with this. Is it a bug? | | Thanks, | S | | | | | | | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-| haskell-users |
8752
Age (days ago)
8752
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Peyton-Jones