Distribution.Parsec.FieldLineStream

Cabal-3.6.0.0: A framework for packaging Haskell software

Safe Haskell | Safe-Inferred
Language | Haskell2010

Distribution.Parsec.FieldLineStream

Synopsis

- data FieldLineStream
  - = FLSLast !ByteString
  - | FLSCons !ByteString FieldLineStream
- fieldLineStreamFromString :: String -> FieldLineStream
- fieldLineStreamFromBS :: ByteString -> FieldLineStream
- fieldLineStreamEnd :: FieldLineStream

# Documentation

data FieldLineStream Source #

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

Constructors

FLSLast !ByteString |
FLSCons !ByteString FieldLineStream |

#### Instances

Instances details

Show FieldLineStream Source # |
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 Source # |
Instance details Defined in Distribution.Parsec.FieldLineStream Methods uncons :: FieldLineStream -> m (Maybe (Char, FieldLineStream)) Source #

fieldLineStreamFromString :: String -> FieldLineStream Source #

Convert `String` to `FieldLineStream`.

Note: inefficient!

fieldLineStreamFromBS :: ByteString -> FieldLineStream Source #

fieldLineStreamEnd :: FieldLineStream Source #