[Haskell-cafe] beginner question: assigning local variable to a function

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed May 6 12:21:47 EDT 2009

On May 6, 2009, at 12:18 , Nico Rolle wrote:
> why does this don't work?
> test = let a = (>)
>    in 1 `a` 2

Works fine here once I correct your indentation (the "in" needs to be  
indented at least as far as the "l" in "let").

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090506/b77ec871/PGP.bin

More information about the Haskell-Cafe mailing list