| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Bio.Streaming.Parse
Description
Parsers for use with ByteStreams.
Documentation
Instances
| MonadTrans (Parser r) Source # | |
| Monad (Parser r m) Source # | |
| Functor (Parser r m) Source # | |
| Applicative (Parser r m) Source # | |
Defined in Bio.Streaming.Parse Methods pure :: a -> Parser r m a Source # (<*>) :: Parser r m (a -> b) -> Parser r m a -> Parser r m b Source # liftA2 :: (a -> b -> c) -> Parser r m a -> Parser r m b -> Parser r m c Source # (*>) :: Parser r m a -> Parser r m b -> Parser r m b Source # (<*) :: Parser r m a -> Parser r m b -> Parser r m a Source # | |
| MonadIO m => MonadIO (Parser r m) Source # | |
| MonadThrow (Parser r m) Source # | |
Defined in Bio.Streaming.Parse | |
data ParseError Source #
Constructors
| ParseError | |
Fields
| |
Instances
| Show ParseError Source # | |
Defined in Bio.Streaming.Parse | |
| Exception ParseError Source # | |
Defined in Bio.Streaming.Parse Methods toException :: ParseError -> SomeException Source # fromException :: SomeException -> Maybe ParseError Source # displayException :: ParseError -> String Source # | |
data EofException Source #
Constructors
| EofException |
Instances
| Show EofException Source # | |
Defined in Bio.Streaming.Parse | |
| Exception EofException Source # | |
Defined in Bio.Streaming.Parse Methods toException :: EofException -> SomeException Source # fromException :: SomeException -> Maybe EofException Source # | |
parse :: Monad m => (Int64 -> Parser r m a) -> ByteStream m r -> m (Either SomeException (Either r (a, ByteStream m r))) Source #
parseIO :: MonadIO m => (Int64 -> Parser r m a) -> ByteStream m r -> m (Either r (a, ByteStream m r)) Source #
parseM :: MonadThrow m => (Int64 -> Parser r m a) -> ByteStream m r -> m (Either r (a, ByteStream m r)) Source #
abortParse :: Monad m => Parser r m a Source #