aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Pipes/Text.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Pipes/Text.hs b/Pipes/Text.hs
index a4ad221..eb72be2 100644
--- a/Pipes/Text.hs
+++ b/Pipes/Text.hs
@@ -27,11 +27,11 @@ To stream from files, the following is perhaps more Prelude-like (note that it u
27> main = runSafeT $ runEffect $ Text.readFile "inFile.txt" >-> Text.writeFile "outFile.txt" 27> main = runSafeT $ runEffect $ Text.readFile "inFile.txt" >-> Text.writeFile "outFile.txt"
28 28
29 You can stream to and from 'stdin' and 'stdout' using the predefined 'stdin' 29 You can stream to and from 'stdin' and 'stdout' using the predefined 'stdin'
30 and 'stdout' proxies, as with the following \"echo\" program: 30 and 'stdout' pipes, as with the following \"echo\" program:
31 31
32> main = runEffect $ Text.stdin >-> Text.stdout 32> main = runEffect $ Text.stdin >-> Text.stdout
33 33
34 You can also translate pure lazy 'TL.Text's to and from proxies: 34 You can also translate pure lazy 'TL.Text's to and from pipes:
35 35
36> main = runEffect $ Text.fromLazy (TL.pack "Hello, world!\n") >-> Text.stdout 36> main = runEffect $ Text.fromLazy (TL.pack "Hello, world!\n") >-> Text.stdout
37 37