2-- Module : Streamly.Sink.Types
3-- Copyright : (c) 2019 Composewell Technologies
5-- Maintainer : harendra.kumar@gmail.com
6-- Stability : experimental
9module Streamly.Sink.Types
15------------------------------------------------------------------------------
17------------------------------------------------------------------------------
19-- | A 'Sink' is a special type of 'Foldl' that does not accumulate any value,
20-- but runs only effects. A 'Sink' has no state to maintain therefore can be a
21-- bit more efficient than a 'Foldl' with '()' as the state, especially when
22-- 'Sink's are composed with other operations. A Sink can be upgraded to a
23-- 'Foldl', but a 'Foldl' cannot be converted into a Sink.
24data Sink m a = Sink (a -> m ())
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