miss-0: A Haskell git implimentation

Safe HaskellNone
LanguageHaskell2010

Data.Git.Internal.Parsers

Description

Miscellaneous git-related attoparsec Parsers.

Synopsis

Documentation

space :: Parser () Source #

Parse a space.

nullByte :: Parser () Source #

Parse a null byte.

lf :: Parser () Source #

Parse a newline.

lt :: Parser () Source #

Parse a less-than (<)

lcHex :: Parser Word8 Source #

Parse lowercase hex digits.

eol :: Parser () Source #

Parse an EOL or the end of the input.

word32 :: Parser Word32 Source #

Parse a Word32

word64 :: Parser Word64 Source #

Parse a Word64

skipLine :: Parser () Source #

Skip text until EOL.

parseSha1 :: Parser Sha1 Source #

Parse a binary Sha1.

parseSha1Hex :: Parser Sha1 Source #

Parse a 40-byte hex SHA into a Sha1.

parseContact :: Parser Contact Source #

Parse a Contact.

parseDate :: Parser Date Source #

Parse a Date.

parseMaybe :: Parser a -> ByteString -> Maybe a Source #

Run a Parser, giving back Nothing on failure.