I am trying out my hands on Haskell.
I wrote the code and saved it as : boolean.hs
The code is:
let area r = pi * r ^ 2
main = print(area 5 < 50)
When I do, ghc -o boolean boolean.hs
I get an error message :
[1 of 1] Compiling Main             ( boolean.hs, boolean.o )
boolean.hs:2:1:
    parse error (possibly incorrect indentation or mismatched brackets)
It would be great if somebody helped me see how this error can be tackled.
I went through Haskell|Wikibooks|Identation, and changed the code to :
let 
    area r = pi * r ^ 2
main = 
    print(area 5 < 50)
And still got :
[1 of 1] Compiling Main             ( boolean.hs, boolean.o )
boolean.hs:3:1:
    parse error (possibly incorrect indentation or mismatched brackets)
Regards. :)
 
     
    