id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
1555,Reverse do notation: lexer bug?,dons,,"Noticed here:

    http://calculist.blogspot.com/2007/07/cute-idiom-from-haskell.html

The following is accepted by GHC:

{{{
main = do
    getChar -> c
    print c
}}}

Yielding the same program as if we'd written;

{{{
main = do
    c <- getChar
    print c
}}}

The above blogger uses this to ingeniously embed:

{{{
gamma |- e -> v
}}}

in Haskell, but surely this is either a lexer bug, or an interesting syntactic feature that shouldn't be enabled by default?",feature request,closed,normal,_|_,Compiler (Parser),6.6.1,wontfix,,dons@… dherman@…,Unknown/Multiple,Unknown/Multiple,None/Unknown,Easy (less than 1 hour),,,,
