| Copyright | Copyright (C) 2017 Johannes Hartmann |
|---|---|
| License | MIT |
| Maintainer | Johannes Hartmann <ec17512@qmul.ac.uk> |
| Stability | provisional |
| Portability | stable |
| Safe Haskell | Safe |
IOActionModule
Description
This module provides all the necessary functions for handling the user interaction
Written by Johannes Hartmann
- askForLocation :: IO String
- askForActor :: IO String
- askToSelectMovie :: IO Int
- printCinemas :: [Cinema] -> IO ()
- printMovies :: [Movie] -> IO ()
Documentation
askForLocation :: IO String Source #
This function asks the user for a location and returns it as a string
askForActor :: IO String Source #
This function asks the user for an actor and returns it as a string
askToSelectMovie :: IO Int Source #
This function asks the user to select a movie and returns it as an int
printCinemas :: [Cinema] -> IO () Source #
This function prints a given list of cinemas to std out
printMovies :: [Movie] -> IO () Source #
This function prints a given list of movies to std out