1-- https://github.com/snoyberg/conduit#readme
4import System.Directory (removeFile)
7 -- Pure operations: summing numbers.
8 print $ runConduitPure $ yieldMany [1..10] .| sumC
10 -- Exception safe file access: copy a file.
11 writeFile "input.txt" "This is a test." -- create the source file
12 runConduitRes $ sourceFileBS "input.txt" .| sinkFile "output.txt" -- actual copying
13 readFile "output.txt" >>= putStrLn -- prove that it worked
15 -- Perform transformations.
16 print $ runConduitPure $ yieldMany [1..10] .| mapC (+ 1) .| sinkList
18 removeFile "input.txt"
19 removeFile "output.txt"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list