tilia-0.2.0.0: corpora/vendored/pragma/declaration/minimal-pragma-alternatives-across-lines-out'.hs
module Stream.Source where
class Source s where
next :: s -> Maybe (Int, s)
peek :: s -> Maybe Int
skip :: s -> s
toList :: s -> [Int]
fold :: (Int -> b -> b) -> b -> s -> b
{-# MINIMAL
next
| peek, skip -- one element at a time
| toList
| fold
#-}