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

Nico Rolle nrolle at web.de
Wed May 6 12:27:42 EDT 2009


Oh sorry guys was rlly a stupid indentation mistake
next time i'll post the error message too
thanks
regards

2009/5/6 Brandon S. Allbery KF8NH <allbery at ece.cmu.edu>:
> 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
>
>
>


More information about the Haskell-Cafe mailing list