[email protected]
[Top] [All Lists]

[Haskell-cafe] Re: Parse error

Subject: [Haskell-cafe] Re: Parse error
From: Maciej Piechotka
Date: Sun, 17 Jan 2010 14:13:14 +0000
On Sun, 2010-01-17 at 18:10 +0800, VoidPrayer wrote:
> let ...
> in ...
> 
> I guess GHC is finding where "in" is.

Except that:

main = do l <- getLine
          let l' = lines l
          print l'

Is perfectly valid without in. Similary:

something = proc (x, y) -> do x' <- someArrow -< x
                              let z = x + y + x'
                              returnA -< z

Regards


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>