@-bindings broken in 6.0?
John Meacham
john@repetae.net
Wed, 18 Jun 2003 01:40:35 -0700
yes. I use 't' as a variable rather often in this context. and
-fglasgow-exts. that seems to be it. perhaps it should not interpret it
as the special quotation if the comprehension doesn't end with |]?
John
On Wed, Jun 18, 2003 at 09:04:42AM +0100, Simon Peyton-Jones wrote:
> 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: glasgow-haskell-users-admin@haskell.org
> [mailto:glasgow-haskell-users-admin@haskell.org]
> | On Behalf Of John Meacham
> | Sent: 18 June 2003 03:24
> | To: glasgow-haskell-users@haskell.org
> | 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. -
> john@foo.net
> |
> ------------------------------------------------------------------------
> ---
> | _______________________________________________
> | Glasgow-haskell-users mailing list
> | Glasgow-haskell-users@haskell.org
> | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users@haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
--
---------------------------------------------------------------------------
John Meacham - California Institute of Technology, Alum. - john@foo.net
---------------------------------------------------------------------------