see also Variable
main = do
let a = "initial"
putStrLn a
let b = 1
let c = 2
print b >> print c
let d = True
print d
let e = undefined :: Int
print e
let f = "short"
putStrLn f
$ runhaskell variables.hs
initial
1
2
True
variables.hs: Prelude.undefined
back to index