themoviedb-1.1.0.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

day :: Maybe Day
 

Instances

Eq Date 
Show Date 
FromJSON Date

Parse release dates in JSON.

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

Aeson helper function to parse dates in TheMovieDB API.