themoviedb-1.1.4.0: Haskell API bindings for http://themoviedb.org
Network.API.TheMovieDB.Internal.Date
Description
Utility type for working with release dates.
Synopsis
newtype Date Source #
A simple type wrapper around Day in order to parse a movie's release date, which may be null or empty.
Day
Constructors
Fields
Instances
Methods
(==) :: Date -> Date -> Bool #
(/=) :: Date -> Date -> Bool #
showsPrec :: Int -> Date -> ShowS #
show :: Date -> String #
showList :: [Date] -> ShowS #
Parse release dates in JSON.
parseJSON :: Value -> Parser Date #
parseJSONList :: Value -> Parser [Date] #
parseDay :: Object -> Text -> Parser (Maybe Day) Source #
Aeson helper function to parse dates in TheMovieDB API.
(.::) :: Object -> Text -> Parser (Maybe Day) Source #