Safe Haskell | None |
---|
Basic bindings to HTML5 WebStorage.
Documentation
getItem :: Serialize a => String -> IO (Either String a)Source
Load a serializable value from local storage. Will fail if the given key does not exist or if the value stored at the key does not match the requested type.
removeItem :: String -> IO ()Source
Remove a value from local storage.