Haskell library for interaction with www.anapioficeandfire.com
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
.travis.yml
LICENSE
README.md
Setup.hs
apioiaf-client.cabal
stack.yaml

README.md

anapioficeandfire-haskell Build Status

A Haskell wrapper for interaction with www.anapioficeandfire.com

API docs generated/hosted on hackage

Usage Example

> jonSnow <- getCharacterById 583
> jonSnow
Just (Character {charUrl = "http://www.anapioficeandfire.com/api/characters/583", 
                 charName = "Jon Snow", 
                 gender = "Male", 
                 culture = "Northmen", 
                 born = "In 283 AC", 
                 died = "", 
                 charTitles = ["Lord Commander of the Night's Watch"], 
                 aliases = ["Lord Snow",
                            "Ned Stark's Bastard",
                            "The Snow of Winterfell",
                            "The Crow-Come-Over",
                            "The 998th Lord Commander of the Night's Watch",
                            "The Bastard of Winterfell",
                            "The Black Bastard of the Wall",
                            "Lord Crow"], 
                 father = "", 
                 mother = "", 
                 spouse = "", 
                 allegiances = ["http://www.anapioficeandfire.com/api/houses/362"], 
                 books = ["http://www.anapioficeandfire.com/api/books/5"], 
                 povBooks = ["http://www.anapioficeandfire.com/api/books/1",
                             "http://www.anapioficeandfire.com/api/books/2",
                             "http://www.anapioficeandfire.com/api/books/3",
                             "http://www.anapioficeandfire.com/api/books/8"], 
                 tvSeries = ["Season 1",
                             "Season 2",
                             "Season 3",
                             "Season 4",
                             "Season 5",
                             "Season 6"], 
                 playedBy = ["Kit Harington"]
                }
     )