Distribution.Parsec.FieldLineStream

Cabal-2.2.0.1: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Parsec.FieldLineStream

Synopsis

- data FieldLineStream
  - = FLSLast !ByteString
  - | FLSCons !ByteString FieldLineStream
- fieldLinesToStream :: [FieldLine ann] -> FieldLineStream
- fieldLineStreamFromString :: String -> FieldLineStream
- fieldLineStreamFromBS :: ByteString -> FieldLineStream

# Documentation

data FieldLineStream #

This is essentially a lazy bytestring, but chunks are glued with newline '\n'.

Constructors

FLSLast !ByteString |
FLSCons !ByteString FieldLineStream |

Instances

Show FieldLineStream # |
Instance details Defined in Distribution.Parsec.FieldLineStream Methods showsPrec :: Int -> FieldLineStream -> ShowS Source # show :: FieldLineStream -> String Source # showList :: [FieldLineStream] -> ShowS Source #
Monad m => Stream FieldLineStream m Char # |
Instance details Defined in Distribution.Parsec.FieldLineStream Methods uncons :: FieldLineStream -> m (Maybe (Char, FieldLineStream)) Source #

fieldLinesToStream :: [FieldLine ann] -> FieldLineStream #

fieldLineStreamFromString :: String -> FieldLineStream #

Convert `String` to `FieldLineStream`.

Note: inefficient!

fieldLineStreamFromBS :: ByteString -> FieldLineStream #