Robby Findler <[EMAIL PROTECTED]> writes: > Just out of curiosity, did you try "wc -l"?
>> import qualified Data.ByteString.Lazy.Char8 as L >> main = L.getContents >>= print . L.count '\n' ..or import Data.ByteString (hGetLines) main = hGetLines IO.stdin >>= print . List.length ? -k -- If I haven't seen further, it is by standing in the footprints of giants _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell