Skip to content
Snippets Groups Projects
Commit afbfe8eb authored by Ashley Yakeley's avatar Ashley Yakeley
Browse files

fixes for #81 and #111

parent 48874869
No related branches found
No related tags found
No related merge requests found
# Change Log
## [1.10]
- remove deprecated functions parseTime, readTime, readsTime
- deprecate iso8601DateFormat
## [1.9.3]
- documentation fixes
......
......@@ -71,6 +71,10 @@ defaultTimeLocale =
]
}
{-# DEPRECATED
iso8601DateFormat "use \"Data.Time.Format.ISO8601\" functions instead"
#-}
{- | Construct format string according to <http://en.wikipedia.org/wiki/ISO_8601 ISO-8601>.
The @Maybe String@ argument allows to supply an optional time specification. E.g.:
......
......@@ -7,9 +7,6 @@ module Data.Time.Format.Parse
, parseTimeOrError
, readSTime
, readPTime
, parseTime
, readTime
, readsTime
, ParseTime()
-- * Locale
, module Data.Time.Format.Locale
......@@ -128,42 +125,6 @@ readPOnlyTime ::
-> ReadP t
readPOnlyTime = readPOnlyTime' Proxy
{-# DEPRECATED
parseTime "use \"parseTimeM True\" instead"
#-}
parseTime ::
ParseTime t
=> TimeLocale -- ^ Time locale.
-> String -- ^ Format string.
-> String -- ^ Input string.
-> Maybe t -- ^ The time value, or 'Nothing' if the input could
-- not be parsed using the given format.
parseTime = parseTimeM True
{-# DEPRECATED
readTime "use \"parseTimeOrError True\" instead"
#-}
readTime ::
ParseTime t
=> TimeLocale -- ^ Time locale.
-> String -- ^ Format string.
-> String -- ^ Input string.
-> t -- ^ The time value.
readTime = parseTimeOrError True
{-# DEPRECATED
readsTime "use \"readSTime True\" instead"
#-}
readsTime ::
ParseTime t
=> TimeLocale -- ^ Time locale.
-> String -- ^ Format string
-> ReadS t
readsTime = readSTime True
-- * Read instances for time package types
instance Read Day where
readsPrec _ = readParen False $ readSTime True defaultTimeLocale "%Y-%m-%d"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment