Safe Haskell | None |
---|---|
Language | Haskell2010 |
HMGit.Internal.Parser.Core.ByteString
Synopsis
- data ParseException
- runByteStringParser :: (MonadThrow m, Show e, ShowErrorComponent e, Typeable e, VisualStream s, TraversableStream s, Typeable s, Show s, Show (Token s)) => Parsec e s a -> Path b t -> s -> m a
- type ByteStringParser = Parsec ParseException ByteString
- null :: ByteStringParser Word8
- space :: ByteStringParser ()
- decimal :: Num i => ByteStringParser i
- octal :: Num i => ByteStringParser i
- fromBinaryGetter :: (String -> ParseException) -> Get ~> ByteStringParser
- relFile :: ByteStringParser (Path Rel File)
Documentation
data ParseException Source #
Constructors
TreeParser String | |
IndexParser String | |
MasterHashParser String |
Instances
runByteStringParser :: (MonadThrow m, Show e, ShowErrorComponent e, Typeable e, VisualStream s, TraversableStream s, Typeable s, Show s, Show (Token s)) => Parsec e s a -> Path b t -> s -> m a Source #
null :: ByteStringParser Word8 Source #
null
space :: ByteStringParser () Source #
M.space is fine but we just want to match 0x20
decimal :: Num i => ByteStringParser i Source #
decimal
octal :: Num i => ByteStringParser i Source #
octal
fromBinaryGetter :: (String -> ParseException) -> Get ~> ByteStringParser Source #
Natural transformation from Get to parsec