[Haskell-cafe] Question about IO, interact functions,
Jason Dusek
jason.dusek at gmail.com
Tue May 19 14:37:34 EDT 2009
2009/05/19 David Leimbach <leimy2k at 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 of the string come in order has everything to do
with `getContents`, which is trustworthy.
--
Jason Dusek
More information about the Haskell-Cafe
mailing list