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

2009-05-07 Thread adam vogt
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. On 5/6/09, Magnus Therning mag...@therning.org wrote: Brandon S. Allbery KF8NH wrote: On May 6, 2009, at 12:18 ,

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

2009-05-07 Thread Magnus Therning
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

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

2009-05-07 Thread Brandon S. Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 7, 2009, at 14:03 , Magnus Therning wrote: 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.

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

2009-05-06 Thread Nico Rolle
hi why does this don't work? test = let a = () in 1 `a` 2 regards ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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

2009-05-06 Thread Brandon S. Allbery KF8NH
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]

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

2009-05-06 Thread Nico Rolle
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 allb...@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

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

2009-05-06 Thread Magnus Therning
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