From 3694350ac7b9c42fd64e0092a74cf0471a080058 Mon Sep 17 00:00:00 2001 From: michaelt Date: Tue, 14 Jan 2014 22:05:12 -0500 Subject: Use clunky Data.Text.IO when bytestring is not explicit --- bench/IO.hs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bench/IO.hs (limited to 'bench') diff --git a/bench/IO.hs b/bench/IO.hs new file mode 100644 index 0000000..b3a52f6 --- /dev/null +++ b/bench/IO.hs @@ -0,0 +1,20 @@ +import qualified Data.Text.IO as T +import qualified Data.Text as T +import qualified Data.Text.Lazy.IO as TL +import qualified Data.Text.Lazy as TL + +import Pipes +import qualified Pipes.Text as TP +import qualified Pipes.ByteString as BP +import Pipes.Safe + +main = textaction +big = "../../examples/txt/words2.txt" + +textaction = T.readFile big >>= T.putStrLn +pipeaction = runEffect $ for ((TP.readFile big) >> return ()) (lift . T.putStrLn) + + + + + -- cgit v1.2.3