should -fglasgow-exts support Haskell98?
Simon Peyton-Jones
simonpj at microsoft.com
Fri Nov 8 03:50:11 EST 2002
No, -fglasgow-exts nukes some valid H98 programs. Reason: the
extensions need to take up some extra syntax. For example, 'forall' is
a keyword in -fglasgow-exts but not in H98.
In your case it thinks you are write an unboxed tuple
(# foo, baz #)
Simon
| -----Original Message-----
| From: Mark Tullsen [mailto:mtullsen at cse.ogi.edu]
| Sent: 07 November 2002 19:51
| To: glasgow-haskell-bugs at haskell.org
| Subject: should -fglasgow-exts support Haskell98?
|
| I don't know if "ghc -fglasgow-exts" should always accept valid
| Haskell 98 programs. If that is the intention, then here is a bug:
| The following program is legal Haskell98 (works fine w/ "ghc") but
| gives a parse error with "-fglasgow-exts":
|
| let _ #>> _ = 1 in (#>>)
|
| Thanks.
|
| BTW, I've just noticed that the ":t" command in ghci now gives me some
| very useful information for values without type signatures (when they
| are in a binding group in which other values have signatures): the
names
| of quantified type variables are nabbed from the other signatures.
| This is really nice!
|
| - Mark
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list