| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
IceAndFire
- data Book = Book {}
- data Character = Character {}
- data House = House {
- houseUrl :: String
- houseName :: String
- region :: String
- coatOfArms :: String
- words :: String
- houseTitles :: [String]
- seats :: [String]
- currentLord :: String
- heir :: String
- overlord :: String
- founded :: String
- founder :: String
- diedOut :: String
- ancestralWeapons :: [String]
- cadetBranches :: [String]
- swornMembers :: [String]
- getBookById :: Int -> IO (Maybe Book)
- getBookByName :: String -> IO [Book]
- getAllBooks :: IO [Book]
- getCharacterById :: Int -> IO (Maybe Character)
- getCharactersByName :: String -> IO [Character]
- getCharactersByCulture :: String -> IO [Character]
- getCharactersByGender :: String -> IO [Character]
- getHouseById :: Int -> IO (Maybe House)
- getHouseByName :: String -> IO [House]
- getHousesByRegion :: String -> IO [House]
- getHouseByWords :: String -> IO [House]
Documentation
Constructors
| Book | |
Constructors
| Character | |
Fields
| |
Constructors
| House | |
Fields
| |
getAllBooks :: IO [Book] Source #
Get all books
getCharactersByCulture :: String -> IO [Character] Source #
Get Character by culture
Example:
getCharactersByCulture "dothraki"
>>>d <- getCharactersByCulture "dothraki">>>List.length d23
getCharactersByGender :: String -> IO [Character] Source #
Get Character by gender
Example:
getCharactersByGender "female"
>>>f <- getCharactersByGender "female">>>List.length f461
getHousesByRegion :: String -> IO [House] Source #
Get House by region
Example:
getHousesByRegion "The Crownlands"
>>>c <- getHousesByRegion "The Crownlands">>>List.length c49