[Haskell] Strange "let"
blue6811 at freechal.com
Wed Jul 21 01:36:54 EDT 2004
I'm a Haskell newbie.
I was trying several things with GHCi and found out that the expression "let
a + b = 3" does not generate any errors.
Prelude> let a + b = 3
<interactive>:1: Variable not in scope: `a'
<interactive>:1: Variable not in scope: `b'
What does "let a + b = 3" mean in this case?
I also tries with GHC compiler using the code below, but it generates no
main :: IO ()
do let a + b = 3
Could somebody answer this?
More information about the Haskell