Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type ParseConstraint m = (Monad m, CharParsing m, TokenParsing m)
- class SequenceParser a where
Documentation
type ParseConstraint m = (Monad m, CharParsing m, TokenParsing m) #
class SequenceParser a where #
A general way to talk about "sequences which can be parsed".
In a previous life, this talked about a specific parsing function, binding us
to a specific parser combinator library, making our rendering our use of
parsers
pointless. Now we solely rely on CharParsing
(from parsers
)
and leave what to do with that fact up to the call site.
parseSequence :: ParseConstraint m => m a #
parseSequences :: ParseConstraint m => m [a] #
SequenceParser PhdSequence # | Parses sequences from a |
SequenceParser FastaSequence # | |
SequenceParser FastQSequence # | |