@@ -12,13 +12,19 @@ string :: FilePath -> IO ()
12string file = readFile file >>= print . length
12string file = readFile file >>= print . length
14text :: FilePath -> IO ()
14text :: FilePath -> IO ()
16+ t <- {-# SCC "T.readFile" #-} T.readFile file
15−text file = T.readFile file >>= print . T.length
17+ print (T.length t)
17textBS :: FilePath -> IO ()
19textBS :: FilePath -> IO ()
21+ bs <- {-# SCC "B.readFile" #-} B.readFile file
18−textBS file = B.readFile file >>= print . T.length . T.decodeUtf8
22+ print . T.length . T.decodeUtf8 $ bs
20bytestring :: FilePath -> IO ()
24bytestring :: FilePath -> IO ()
21−bytestring file = B.readFile file >>= print . B.length
25+bytestring file = do
26+ bs <- {-# SCC "B.readFile" #-}B.readFile file
24 (name : file : _) <- getArgs
30 (name : file : _) <- getArgs