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

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.Html.LocalStorage

Description

Local storage IO operations Get and set localstorage 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 #

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.0.0.1-8HCrZaKFIJD6bccepzwdjl" 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 => Territory t => Show a => Eq a => LocalStorageKey a -> t a -> m () Source #

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