-- From http://learnyouahaskell.com/input-and-output -- Note that this one does work interactvely! Why? What's the difference -- with loop3.hs, which doesn't? import Data.Char main = interact (map toUpper)