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

JSONParserModule

Contents

Description

This module takes care of the json parsing for each http module

Written by Liam Kelly, Manuel Campos Villarreal, Johannes Hartmann

Synopsis

Documentation

parseMovies :: ByteString -> [Movie] Source #

This function parses a given byte string representing a JSON into a list of movies

parseActors :: ByteString -> Movie -> [Actor] Source #

This function parses a given byte string representing a JSON and a movie into a list actors

parsePages :: ByteString -> Int Source #

This function parses a given byte string representing a JSON into the total number of pages

parseCinemas :: ByteString -> [Cinema] Source #

This function parses a given byte string representing a JSON into a list of cinemas

parseMovies2 :: ByteString -> [Movie2] Source #

This function parses a given byte string representing a JSON into a list of movies2

Orphan instances

FromJSON Cinema Source # 

Methods

parseJSON :: Value -> Parser Cinema

FromJSON Movie2 Source # 

Methods

parseJSON :: Value -> Parser Movie2

FromJSON Movie Source # 

Methods

parseJSON :: Value -> Parser Movie