-- Single line comments start with -- and go to the line's end {- Multi-line comments look like this. -} foo a b c = a + b * c main = let bar = foo 1 -- creates the function bar b c = 1+b*c baz = bar 2 -- creates the function baz c = 1+2*c res = baz 3 -- computes the result res = 1+2*3 in putStrLn(show(res))