Skip to content

Commit 9c34fc2

Browse files
committed
[resolves #56]; remove references to ResourceT in documentation
1 parent 98737f7 commit 9c34fc2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Streaming/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ separate odd_even
10391039
10401040
Or we can write them to separate files or whatever:
10411041
1042-
>>> runResourceT $ S.writeFile "even.txt" . S.show $ S.writeFile "odd.txt" . S.show $ S.separate odd_even
1042+
>>> S.writeFile "even.txt" . S.show $ S.writeFile "odd.txt" . S.show $ S.separate odd_even
10431043
>>> :! cat even.txt
10441044
2
10451045
4

src/Streaming/Prelude.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ subst f s = loop s where
19721972
>>> S.toList $ S.take 3 $ each "with"
19731973
"wit" :> ()
19741974
1975-
>>> runResourceT $ S.stdoutLn $ S.take 3 $ S.readFile "stream.hs"
1975+
>>> S.stdoutLn $ S.take 3 $ S.readFile "stream.hs"
19761976
import Streaming
19771977
import qualified Streaming.Prelude as S
19781978
import Streaming.Prelude (each, next, yield)
@@ -2597,7 +2597,7 @@ sumToCompose x = case x of
25972597
like 'MonadResource'. Thus I can independently filter and write to one file, but
25982598
nub and write to another, or interact with a database and a logfile and the like:
25992599
2600-
>>> runResourceT $ (S.writeFile "hello2.txt" . S.nubOrd) $ store (S.writeFile "hello.txt" . S.filter (/= "world")) $ each ["hello", "world", "goodbye", "world"]
2600+
>>> (S.writeFile "hello2.txt" . S.nubOrd) $ store (S.writeFile "hello.txt" . S.filter (/= "world")) $ each ["hello", "world", "goodbye", "world"]
26012601
>>> :! cat hello.txt
26022602
hello
26032603
goodbye

0 commit comments

Comments
 (0)