Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains helper functions for file parsing.
Synopsis
- liftParsingErrors :: MonadThrow m => Either (ParsingError, Producer ByteString m r) () -> Producer a m ()
- consumeProducer :: MonadThrow m => Parser a -> Producer ByteString m () -> Producer a m ()
- readFileProd :: MonadSafe m => FilePath -> Producer ByteString m ()
- data SeqFormatException = SeqFormatException String
- newtype Chrom = Chrom {}
- word :: Parser ByteString
Documentation
liftParsingErrors :: MonadThrow m => Either (ParsingError, Producer ByteString m r) () -> Producer a m () Source #
A function to help with reporting parsing errors to stderr. Returns a clean Producer over the parsed datatype.
consumeProducer :: MonadThrow m => Parser a -> Producer ByteString m () -> Producer a m () Source #
A helper function to parse a text producer, properly reporting all errors to stderr.
readFileProd :: MonadSafe m => FilePath -> Producer ByteString m () Source #
data SeqFormatException Source #
An exception type for parsing BioInformatic file formats.
Instances
Show SeqFormatException Source # | |
Defined in SequenceFormats.Utils showsPrec :: Int -> SeqFormatException -> ShowS # show :: SeqFormatException -> String # showList :: [SeqFormatException] -> ShowS # | |
Exception SeqFormatException Source # | |
Defined in SequenceFormats.Utils |
A wrapper datatype for Chromosome names.
word :: Parser ByteString Source #