main = interact (unlines . lines)
This *appears* to somewhat reliably get me functionality that looks like
take a line of input, and print it out.
Is this behavior something I can rely on working?
I like the idea that lines can pull lines lazily from getContents which
lazily consume the input.
2009/05/19 David Leimbach leim...@gmail.com:
...I'm concerned that relying on a pure function like
unlines . lines to sequence IO is a bit too implicit in nature.
You aren't relying on `unlines . lines` to do the sequencing;
you're relying on them to process a string. That the
characters