logo       

RE: should -fglasgow-exts support Haskell98?: msg#00013

lang.haskell.glasgow.bugs

Subject: RE: should -fglasgow-exts support Haskell98?

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@xxxxxxxxxxx]
| Sent: 07 November 2002 19:51
| To: glasgow-haskell-bugs@xxxxxxxxxxx
| 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@xxxxxxxxxxx
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise