[Hugs] #39: Incorrect parsing of lambda expressions

Sigbjorn Finne sof at galois.com
Tue Oct 10 20:34:04 EDT 2006


[I couldn't resist...sorry ;-) ]

The bug reporter may feel the Haskell grammar "succs" here, so
perhaps he'd be content rephrasing it as

   let f l = flip map l succ in f [1..10]

instead?

--sigbjorn

Hugs wrote:
> #39: Incorrect parsing of lambda expressions
> ------------------------------+---------------------------------------------
>   Reporter:  Ørjan Johansen  |       Owner:  nobody
>       Type:  defect           |      Status:  new   
>   Priority:  major            |   Milestone:        
>  Component:  parsing          |     Version:  200609
> Resolution:                   |    Keywords:        
> ------------------------------+---------------------------------------------
> Comment (by Neil Mitchell):
>
>  Using GHCi
>
>  Prelude> let f l = flip map l \a -> a+1 in f [1..10]
>  <interactive>:1:21: parse error on input `\'
>
>  Can you point to a Haskell thingy that gets this "right", or a section of
>  the report that shows the above being correct?
>
>   


More information about the Hugs-Bugs mailing list