CopyrightCopyright (C) 2017 Johannes Hartmann, Liam Kelly, Manuel Campos Villarreal
LicenseMIT
MaintainerJohannes Hartmann <ec17512@qmul.ac.uk>
Stabilitystable
Portabilityportable
Safe HaskellSafe

DataStructures

Description

Datatypes used in the application.

Written by Johannes Hartmann, Liam Kelly, Manuel Campos Villarreal

Synopsis

Documentation

data Movie Source #

Data structure representing a movie. The first parameter is the ID and the second is the name of the movie and the third one is the release day

Constructors

Movie Int String String 

Instances

Eq Movie Source # 

Methods

(==) :: Movie -> Movie -> Bool

(/=) :: Movie -> Movie -> Bool

Show Movie Source # 

Methods

showsPrec :: Int -> Movie -> ShowS

show :: Movie -> String

showList :: [Movie] -> ShowS

data Actor Source #

Data structure representing an actor. The first parameter is the ID, the second is the name of the actor and the third is a List containing all movies he plays in

Constructors

Actor Int String [Movie] 

Instances

Eq Actor Source # 

Methods

(==) :: Actor -> Actor -> Bool

(/=) :: Actor -> Actor -> Bool

Show Actor Source # 

Methods

showsPrec :: Int -> Actor -> ShowS

show :: Actor -> String

showList :: [Actor] -> ShowS

data Cinema Source #

Data structure representing a cinema. The first parameter is the ID, the second parameter is the name of the cinema and the third one is the range to the given location

Constructors

Cinema String String Float 

Instances

Eq Cinema Source # 

Methods

(==) :: Cinema -> Cinema -> Bool

(/=) :: Cinema -> Cinema -> Bool

Show Cinema Source # 

Methods

showsPrec :: Int -> Cinema -> ShowS

show :: Cinema -> String

showList :: [Cinema] -> ShowS

newtype Movie2 Source #

Data structure representing a Movie from the second API, whicht have no cinemaId and release date.

Constructors

Movie2 String 

Instances

Eq Movie2 Source # 

Methods

(==) :: Movie2 -> Movie2 -> Bool

(/=) :: Movie2 -> Movie2 -> Bool

Show Movie2 Source # 

Methods

showsPrec :: Int -> Movie2 -> ShowS

show :: Movie2 -> String

showList :: [Movie2] -> ShowS