I\'m fairly new to Haskell, and I\'d like to keep reading lines from the console until the end of the stream, and outputting everything I get in upper case. So far, I\'ve got
This goes way beyond what you're really asking for, but I use this pattern a lot: interact:
interact
myFun :: String -> String myFun = ... main = interact (unlines . myFun . lines)
Your function myFun will be executed against every line of standard input and the result sent to standard output.
myFun