apioiaf-client-0.2.1.0: Consumer library for anapioficeandfire.com

Safe HaskellNone
LanguageHaskell2010

IceAndFire

Synopsis

Documentation

getBookById :: Int -> IO (Maybe Book) Source #

Get Book by id number

getBookByName :: String -> IO [Book] Source #

Get Book by name

getAllBooks :: IO [Book] Source #

Get all books

getCharacterById :: Int -> IO (Maybe Character) Source #

Get Character by id number

getCharactersByName :: String -> IO [Character] Source #

Get Characters by name

getCharactersByCulture :: String -> IO [Character] Source #

Get Character by culture

Example:

getCharactersByCulture "dothraki"
>>> d <- getCharactersByCulture "dothraki"
>>> List.length d
23

getCharactersByGender :: String -> IO [Character] Source #

Get Character by gender

Example:

getCharactersByGender "female"
>>> f <- getCharactersByGender "female"
>>> List.length f
461

getHouseById :: Int -> IO (Maybe House) Source #

Get House by id number

getHouseByName :: String -> IO [House] Source #

Get House by name

getHousesByRegion :: String -> IO [House] Source #

Get House by region

Example:

getHousesByRegion "The Crownlands"
>>> c <- getHousesByRegion "The Crownlands"
>>> List.length c
49

getHouseByWords :: String -> IO [House] Source #

Get a House by its words