Yes, I'm afraid so.  With -fglasgow-exts Template Haskell captures
        [t|  ...  |]
and
        [p| ... |]
and similarly [d| and [e| 
for quotations. I don't think I'd fully realised that this conflicts
with list comprehensions
        [t|t<-ts]

(I remember reading a book when I was 10 featuring kids trying to decode
a message that was in two parts "mac" .. and "hine".   Took me ages to
spot "machine".)


But maybe this isn't what you found?    Better syntax here would be
welcome if anyone can think of some. 

Simon

| -----Original Message-----
| From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
| On Behalf Of John Meacham
| Sent: 18 June 2003 03:24
| To: [EMAIL PROTECTED]
| Subject: @-bindings broken in 6.0?
| 
| 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
| --
|
------------------------------------------------------------------------
---
| John Meacham - California Institute of Technology, Alum. -
[EMAIL PROTECTED]
|
------------------------------------------------------------------------
---
| _______________________________________________
| Glasgow-haskell-users mailing list
| [EMAIL PROTECTED]
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to