Instance Declaration discrepancy

Simon Peyton-Jones simonpj@microsoft.com
Mon, 4 Jun 2001 01:34:17 -0700


You need -fallow-undecidable-instances as well.

Simon

| -----Original Message-----
| From: Saswat Anand [mailto:iscp9157@nus.edu.sg]=20
| Sent: 02 June 2001 10:13
| To: 'glasgow-haskell-users@haskell.org'
| Subject: Instance Declaration discrepancy
|=20
|=20
|=20
| class MyShow a where
|  sh :: a -> String
|=20
| instance (Integral a) =3D> Show a where
|  sh =3D "Integer " + show a
|=20
| Ghc 5.00.1 (with -fglasgow-exts) does not accept the above,=20
| while hugs with extensions has no problem with this. Is it a bug?
|=20
| Thanks,
| S
|=20
|=20
|=20
|=20
|=20
|=20
| _______________________________________________
| Glasgow-haskell-users mailing list=20
| Glasgow-haskell-users@haskell.org=20
| http://www.haskell.org/mailman/listinfo/glasgow-| haskell-users
|=20