Safe Haskell | None |
---|
Data.Time.Parsers.Util
- nDigit :: (Read a, Num a) => Int -> Parser a
- isBCE :: OptionedParser Bool
- onlyParse :: OptionedParser a -> OptionedParser a
- defaultOptions :: Options
- withOptions :: OptionedParser a -> Options -> Parser a
- withDefaultOptions :: OptionedParser a -> Parser a
- parseWithOptions :: Options -> OptionedParser a -> ByteString -> Result a
- parseWithDefaultOptions :: OptionedParser a -> ByteString -> Result a
- isFlagSet :: Flag -> OptionedParser Bool
- makeBCE :: Monad m => Day -> m Day
- fromExtendedTimestamp :: (FromZonedTime a, ToZonedTime a) => a -> ExtendedTimestamp a -> a
- fromExtendedTimestampIO :: (FromZonedTime a, ToZonedTime a) => ExtendedTimestamp a -> IO a
- module Data.Time.Parsers.Types
Documentation
onlyParse :: OptionedParser a -> OptionedParser aSource
Fail if the given parser fails to consume all of the input
withOptions :: OptionedParser a -> Options -> Parser aSource
withDefaultOptions :: OptionedParser a -> Parser aSource
parseWithOptions :: Options -> OptionedParser a -> ByteString -> Result aSource
Use given options and parser to parse a single Timestamp. always feeds empty, so a Partial result is never returned. Ignores preceding and trailing whitespace.
parseWithDefaultOptions :: OptionedParser a -> ByteString -> Result aSource
Use default options to parse single Timestamp with a given parser, ignoring preceding and trailing whitespace
isFlagSet :: Flag -> OptionedParser BoolSource
Return whether a given flag is set.
fromExtendedTimestamp :: (FromZonedTime a, ToZonedTime a) => a -> ExtendedTimestamp a -> aSource
Given a timestamp to use as the current time, purely convert an ExtendedTimestamp to a timestamp
fromExtendedTimestampIO :: (FromZonedTime a, ToZonedTime a) => ExtendedTimestamp a -> IO aSource
Use getZonedTime to get the current time, and use it to convert an ExtendedTimestamp to a timestamp
module Data.Time.Parsers.Types