| Copyright | Copyright (C) 2017 Liam Kelly, Manuel Campos Villarreal, Johannes Hartmann |
|---|---|
| License | MIT |
| Maintainer | Johannes Hartmann <ec17512@qmul.ac.uk> |
| Stability | provisional |
| Portability | stable |
| Safe Haskell | None |
JSONParserModule
Contents
Description
This module takes care of the json parsing for each http module
Written by Liam Kelly, Manuel Campos Villarreal, Johannes Hartmann
- parseMovies :: ByteString -> [Movie]
- parseActors :: ByteString -> Movie -> [Actor]
- parsePages :: ByteString -> Int
- parseCinemas :: ByteString -> [Cinema]
- parseMovies2 :: ByteString -> [Movie2]
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