time-compat
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Time.Format.ISO8601.Compat

Synopsis

Format

data Format t #

Instances

Instances details
IsoVariant Format # 
Instance details

Defined in Data.Format

Methods

isoMap :: (a -> b) -> (b -> a) -> Format a -> Format b

Productish Format # 
Instance details

Defined in Data.Format

Methods

pUnit :: Format ()

(<**>) :: Format a -> Format b -> Format (a, b)

(**>) :: Format () -> Format a -> Format a

(<**) :: Format a -> Format () -> Format a

Summish Format # 
Instance details

Defined in Data.Format

Methods

pVoid :: Format Void

(<++>) :: Format a -> Format b -> Format (Either a b)

formatShowM :: Format t -> t -> Maybe String #

formatShow :: Format t -> t -> String #

formatReadP :: Format t -> ReadP t #

formatParseM :: MonadFail m => Format t -> String -> m t #

Common formats

class ISO8601 t where #

Methods

iso8601Format :: Format t #

Instances

Instances details
ISO8601 CalendarDiffDays # 
Instance details

Defined in Data.Time.Format.ISO8601

ISO8601 Day # 
Instance details

Defined in Data.Time.Format.ISO8601

ISO8601 UTCTime # 
Instance details

Defined in Data.Time.Format.ISO8601

ISO8601 CalendarDiffTime # 
Instance details

Defined in Data.Time.Format.ISO8601

ISO8601 LocalTime # 
Instance details

Defined in Data.Time.Format.ISO8601

ISO8601 TimeOfDay # 
Instance details

Defined in Data.Time.Format.ISO8601

ISO8601 TimeZone # 
Instance details

Defined in Data.Time.Format.ISO8601

ISO8601 ZonedTime # 
Instance details

Defined in Data.Time.Format.ISO8601

iso8601Show :: ISO8601 t => t -> String #

iso8601ParseM :: (MonadFail m, ISO8601 t) => String -> m t #

All formats

parseFormatExtension :: MonadFail m => (FormatExtension -> Format t) -> String -> m t #

yearMonthFormat :: Format (Integer, Int) #

yearFormat :: Format Integer #

expandedYearMonthFormat :: Int -> Format (Integer, Int) #

expandedYearFormat :: Int -> Format Integer #

expandedCenturyFormat :: Int -> Format Integer #

yearWeekFormat :: FormatExtension -> Format (Integer, Int) #

expandedYearWeekFormat :: Int -> FormatExtension -> Format (Integer, Int) #

dayAndTimeFormat :: Format Day -> Format time -> Format (Day, time) #

intervalFormat :: Format a -> Format b -> Format (a, b) #

recurringIntervalFormat :: Format a -> Format b -> Format (Int, a, b) #