themoviedb-1.2.2: Haskell API bindings for http://themoviedb.org
CopyrightThis file is part of the package themoviedb. It is subject to
the license terms in the LICENSE file found in the top-level
directory of this distribution and at:

https://github.com/pjones/themoviedb

No part of this package including this file may be copied
modified propagated or distributed except according to the terms
contained in the LICENSE file.
LicenseMIT
Safe HaskellSafe-Inferred
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

Instances details
FromJSON Date Source #

Parse release dates in JSON.

Instance details

Defined in Network.API.TheMovieDB.Internal.Date

Show Date Source # 
Instance details

Defined in Network.API.TheMovieDB.Internal.Date

Methods

showsPrec :: Int -> Date -> ShowS #

show :: Date -> String #

showList :: [Date] -> ShowS #

Eq Date Source # 
Instance details

Defined in Network.API.TheMovieDB.Internal.Date

Methods

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

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

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

Aeson helper function to parse dates in TheMovieDB API.

(.::) :: Object -> Key -> Parser (Maybe Day) Source #

Infix alias for parseDay.