kawa-0.1.0.0: Key-value store in single files.
Database.Kawa.Store
newtype Store Source #
Constructors
Fields
Instances
Methods
(==) :: Store -> Store -> Bool #
(/=) :: Store -> Store -> Bool #
showsPrec :: Int -> Store -> ShowS #
show :: Store -> String #
showList :: [Store] -> ShowS #
newtype Key Source #
(==) :: Key -> Key -> Bool #
(/=) :: Key -> Key -> Bool #
showsPrec :: Int -> Key -> ShowS #
show :: Key -> String #
showList :: [Key] -> ShowS #
hashWithSalt :: Int -> Key -> Int #
hash :: Key -> Int #
newtype Value Source #
(==) :: Value -> Value -> Bool #
(/=) :: Value -> Value -> Bool #
showsPrec :: Int -> Value -> ShowS #
show :: Value -> String #
showList :: [Value] -> ShowS #
emptyStore :: Store Source #
set :: Store -> Key -> Value -> Store Source #
get :: Store -> Key -> Maybe Value Source #
toText :: Store -> Text Source #
fromText :: Text -> Either String Store Source #
readStore :: FilePath -> IO (Either String Store) Source #
readStore' :: FilePath -> IO Store Source #
writeStore :: FilePath -> Store -> IO () Source #