aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Pipes/Text.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Pipes/Text.hs b/Pipes/Text.hs
index c0c0946..f85f0ee 100644
--- a/Pipes/Text.hs
+++ b/Pipes/Text.hs
@@ -29,11 +29,11 @@ To stream from files, the following is perhaps more Prelude-like (note that it u
29> main = runSafeT $ runEffect $ Text.readFile "inFile.txt" >-> Text.writeFile "outFile.txt" 29> main = runSafeT $ runEffect $ Text.readFile "inFile.txt" >-> Text.writeFile "outFile.txt"
30 30
31 You can stream to and from 'stdin' and 'stdout' using the predefined 'stdin' 31 You can stream to and from 'stdin' and 'stdout' using the predefined 'stdin'
32 and 'stdout' proxies, as with the following \"echo\" program: 32 and 'stdout' pipes, as with the following \"echo\" program:
33 33
34> main = runEffect $ Text.stdin >-> Text.stdout 34> main = runEffect $ Text.stdin >-> Text.stdout
35 35
36 You can also translate pure lazy 'TL.Text's to and from proxies: 36 You can also translate pure lazy 'TL.Text's to and from pipes:
37 37
38> main = runEffect $ Text.fromLazy (TL.pack "Hello, world!\n") >-> Text.stdout 38> main = runEffect $ Text.fromLazy (TL.pack "Hello, world!\n") >-> Text.stdout
39 39
@@ -1159,4 +1159,4 @@ decodeIso8859_1 = go where
1159 1159
1160 1160
1161 1161
1162 \ No newline at end of file 1162