@-bindings broken in 6.0?

Derek Elkins ddarius@hotpop.com
Wed, 18 Jun 2003 02:28:01 -0400


On Tue, 17 Jun 2003 19:23:55 -0700
John Meacham <john@repetae.net> wrote:

> change in list comprehension parsing?
> after I upgraded to ghc 6.0 there were some odd syntax errors on list
> comprehensions which i did not get before, making sure i put spaces
> between all symbols seems to fix them.. was something changed about
> how they are parsed which breaks code that used to work? just curious.
> 
>         John

I'm going to assume this message was cut-off otherwise an example
illustrating the issue would have been a definite help.  If you aren't
using -fglasgow-exts then I can't think of anything that would break
whatever, however in 6.0, probably the most major thing in 6.0, is
Template Haskell which takes some lexemes.  If you have a list
comprehension like [d|d<-ds] then you are going to have issues as '[d|'
is a lexeme in TH.  Others include, '$(', '[|','|]','$x' where x is some
variable