themoviedb-1.1.4.0: Haskell API bindings for http://themoviedb.org

Safe HaskellNone
LanguageHaskell2010

Network.API.TheMovieDB.Internal.Date

Description

Utility type for working with release dates.

Synopsis

Documentation

newtype Date Source #

A simple type wrapper around Day in order to parse a movie's release date, which may be null or empty.

Constructors

Date 

Fields

Instances

Eq Date Source # 

Methods

(==) :: Date -> Date -> Bool #

(/=) :: Date -> Date -> Bool #

Show Date Source # 

Methods

showsPrec :: Int -> Date -> ShowS #

show :: Date -> String #

showList :: [Date] -> ShowS #

FromJSON Date Source #

Parse release dates in JSON.

parseDay :: Object -> Text -> Parser (Maybe Day) Source #

Aeson helper function to parse dates in TheMovieDB API.