Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
Character | |
|
House | |
|
getAllBooks :: IO [Book] Source #
Get all books
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
getHousesByRegion :: String -> IO [House] Source #
Get House by region
Example:
getHousesByRegion
"The Crownlands"
>>>
c <- getHousesByRegion "The Crownlands"
>>>
List.length c
49