sequence-formats-1.4.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 :: 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.

newtype Chrom Source #

A wrapper datatype for Chromosome names.

Constructors

Chrom 

Fields

Instances
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 #

Show Chrom Source #

Show instance for Chrom

Instance details

Defined in SequenceFormats.Utils

Methods

showsPrec :: Int -> Chrom -> ShowS #

show :: Chrom -> String #

showList :: [Chrom] -> ShowS #