sequence-formats-1.11.0.1: A package with basic parsing utilities for several Bioinformatic data formats.
Safe HaskellNone
LanguageHaskell2010

SequenceFormats.Utils

Description

This module contains helper functions for file parsing.

Synopsis

Documentation

liftParsingErrors :: forall (m :: Type -> Type) r a. 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 :: forall (m :: Type -> Type) a. 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 :: forall (m :: Type -> Type). MonadSafe m => FilePath -> Producer ByteString m () Source #

newtype Chrom Source #

A wrapper datatype for Chromosome names.

Constructors

Chrom 

Fields

Instances

Instances details
Show Chrom Source #

Show instance for Chrom

Instance details

Defined in SequenceFormats.Utils

Methods

showsPrec :: Int -> Chrom -> ShowS #

show :: Chrom -> String #

showList :: [Chrom] -> ShowS #

Eq Chrom Source # 
Instance details

Defined in SequenceFormats.Utils

Methods

(==) :: Chrom -> Chrom -> Bool #

(/=) :: Chrom -> Chrom -> Bool #

Ord Chrom Source #

Ord instance for Chrom

Instance details

Defined in SequenceFormats.Utils

Methods

compare :: Chrom -> Chrom -> Ordering #

(<) :: Chrom -> Chrom -> Bool #

(<=) :: Chrom -> Chrom -> Bool #

(>) :: Chrom -> Chrom -> Bool #

(>=) :: Chrom -> Chrom -> Bool #

max :: Chrom -> Chrom -> Chrom #

min :: Chrom -> Chrom -> Chrom #

gzipConsumer :: forall (m :: Type -> Type). MonadIO m => Deflate -> Handle -> Consumer ByteString m () Source #

data Deflate #

The state of a deflation (eg, compression) process. All allocated memory is automatically reclaimed by the garbage collector.