Module
Browser.WebStorage
- Package
- purescript-webstorage
- Repository
- joneshf/purescript-webstorage
#WEB_STORAGE Source
data WEB_STORAGE :: Effect
#EffWebStorage Source
type EffWebStorage eff = Eff (webStorage :: WEB_STORAGE | eff)
#Storage Source
class Storage s where
Members
clear :: forall eff. s -> EffWebStorage eff Unit
getItem :: forall eff. s -> StorageKey -> EffWebStorage eff (Maybe String)
key :: forall eff. s -> Int -> EffWebStorage eff (Maybe StorageKey)
length :: forall eff. s -> EffWebStorage eff Int
removeItem :: forall eff. s -> StorageKey -> EffWebStorage eff Unit
setItem :: forall eff. s -> StorageKey -> String -> EffWebStorage eff Unit
Instances
- Modules
- Browser.
WebStorage