Shpadoinkle-html-0.3.0.2: A typed, template generated Html DSL, and helpers.

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.Html.LocalStorage

Description

Local storage IO operations Get and set local storage values from some LocalStorageKey

Synopsis

Documentation

newtype LocalStorageKey a Source #

The key for a specific state kept in local storage

Constructors

LocalStorageKey 
Instances
Eq (LocalStorageKey a) Source # 
Instance details

Defined in Shpadoinkle.Html.LocalStorage

Ord (LocalStorageKey a) Source # 
Instance details

Defined in Shpadoinkle.Html.LocalStorage

Read (LocalStorageKey a) Source # 
Instance details

Defined in Shpadoinkle.Html.LocalStorage

Show (LocalStorageKey a) Source # 
Instance details

Defined in Shpadoinkle.Html.LocalStorage

IsString (LocalStorageKey a) Source # 
Instance details

Defined in Shpadoinkle.Html.LocalStorage

Generic (LocalStorageKey a) Source # 
Instance details

Defined in Shpadoinkle.Html.LocalStorage

Associated Types

type Rep (LocalStorageKey a) :: Type -> Type Source #

Semigroup (LocalStorageKey a) Source # 
Instance details

Defined in Shpadoinkle.Html.LocalStorage

Monoid (LocalStorageKey a) Source # 
Instance details

Defined in Shpadoinkle.Html.LocalStorage

type Rep (LocalStorageKey a) Source # 
Instance details

Defined in Shpadoinkle.Html.LocalStorage

type Rep (LocalStorageKey a) = D1 (MetaData "LocalStorageKey" "Shpadoinkle.Html.LocalStorage" "Shpadoinkle-html-0.3.0.2-1zauPpxpowV2nYKBXTwvGR" True) (C1 (MetaCons "LocalStorageKey" PrefixI True) (S1 (MetaSel (Just "unLocalStorageKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

setStorage :: MonadJSM m => Show a => LocalStorageKey a -> a -> m () Source #

saveOnChange :: MonadJSM m => Show a => Eq a => LocalStorageKey a -> TVar a -> m () Source #

manageLocalStorage :: MonadUnliftIO m => MonadJSM m => Show a => Read a => Eq a => LocalStorageKey a -> a -> m (TVar a) Source #