Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Streaming/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ separate odd_even

Or we can write them to separate files or whatever:

>>> S.writeFile "even.txt" . S.show $ S.writeFile "odd.txt" . S.show $ S.separate odd_even
>>> withFile "even.txt" WriteMode $ \he -> withFile "odd.txt" WriteMode $ \ho -> S.toHandle he . S.show $ S.toHandle ho . S.show $ S.separate odd_even
>>> :! cat even.txt
2
4
Expand Down