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

Magnus Therning magnus at therning.org
Thu May 7 14:03:17 EDT 2009


adam vogt wrote:
> This is most likely attributable to the use of different compilers.
> 
> I don't see how accepting such a variant can cause ambiguity, but I'm
> not quite sure whether it is legal H98.

Just a bit curious then what compiler Brandon was using.  I'm using GHC 
6.10.2 on AMD64 Linux (Arch).

/M

> On 5/6/09, Magnus Therning <magnus at therning.org> wrote:
>> Brandon S. Allbery KF8NH wrote:
>>> 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").
>> Really?  For me it's enough to have "in" indented more then "test", and one
>> space is enough:
>>
>>  test = let a = (>)
>>   in 1 `a` 2
>>
>> /M
>>
>> --
>> Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
>> magnus@therning.org          Jabber: magnus@therning.org
>> http://therning.org/magnus         identi.ca|twitter: magthe
>>
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>>
>>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090507/49015ed7/signature.bin


More information about the Haskell-Cafe mailing list