Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Ord (Pos s) => Stream s where Source #
next :: s -> Maybe (Item s, s) Source #
nextWhile :: (Item s -> Bool) -> s -> (Chunk s, s) Source #
nextN :: Int -> s -> (Chunk s, s) Source #
makeChunk :: Proxy s -> [Item s] -> Chunk s Source #
Instances
Stream StringLines Source # | |
Defined in Data.Stream.StringLines next :: StringLines -> Maybe (Item StringLines, StringLines) Source # nextWhile :: (Item StringLines -> Bool) -> StringLines -> (Chunk StringLines, StringLines) Source # nextN :: Int -> StringLines -> (Chunk StringLines, StringLines) Source # makeChunk :: Proxy StringLines -> [Item StringLines] -> Chunk StringLines Source # unmakeChunk :: Proxy StringLines -> Chunk StringLines -> [Item StringLines] Source # getPos :: StringLines -> Pos StringLines Source # |