themoviedb-1.2.0.1: 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 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 # 
Instance details

Defined in Network.API.TheMovieDB.Internal.Date

Methods

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

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

Show Date Source # 
Instance details

Defined in Network.API.TheMovieDB.Internal.Date

Methods

showsPrec :: Int -> Date -> ShowS #

show :: Date -> String #

showList :: [Date] -> ShowS #

FromJSON Date Source #

Parse release dates in JSON.

Instance details

Defined in Network.API.TheMovieDB.Internal.Date

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

Aeson helper function to parse dates in TheMovieDB API.

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

Infix alias for parseDay.