From the haskell.org website: every expression has a type. So what is the type of
main = putStrLn "Hello, World!"
I would like to know not what the type of main is, but what the type of the whole line is. Also, is it possible to get this type somehow in ghci? I tried
:t (main = putStrLn "Hello, World!")
but this does not work.