dates-0.2.2.0: Small library for parsing different dates formats.

Safe HaskellSafe-Inferred

Data.Dates.Internal

Synopsis

Documentation

tryRead :: (Read a, Stream s m Char) => String -> ParsecT s st m aSource

Parser version of Prelude.read

tryReadInt :: (Stream s m Char, Num a) => String -> ParsecT s st m aSource

times :: Stream s m Char => Int -> ParsecT s st m t -> ParsecT s st m [t]Source

Apply parser N times

numberSource

Arguments

:: Stream s m Char 
=> Int

Number of digits

-> Int

Maximum value

-> ParsecT s st m Int 

Parse natural number of N digits which is not greater than M

pYear :: Stream s m Char => ParsecT s st m IntSource

pDay :: Stream s m Char => ParsecT s st m IntSource