Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
key: value
database, allows duplicate key
s.
Synopsis
- type Sep = (String, String, String)
- type Key = String
- type Value = String
- type Entry = (Key, [Value])
- type Record = [Entry]
- type Db = [Record]
- sep_plain :: Sep
- record_parse :: (String, String) -> String -> Record
- record_lookup :: Key -> Record -> [Value]
- record_lookup_at :: (Key, Int) -> Record -> Maybe Value
- record_has_key :: Key -> Record -> Bool
- record_lookup_uniq :: Key -> Record -> Maybe Value
- db_parse :: Sep -> String -> [Record]
- db_sort :: [(Key, Int)] -> [Record] -> [Record]
- db_load_utf8 :: Sep -> FilePath -> IO [Record]
- record_pp :: (String, String) -> Record -> String
- db_store_utf8 :: Sep -> FilePath -> [Record] -> IO ()