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

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.Html

Description

This module re-exports the complete HTML DSL,

Documentation

debounceRaw :: MonadJSM m => MonadIO n => NominalDiffTime -> n ((RawNode -> RawEvent -> JSM (Continuation m a)) -> RawNode -> RawEvent -> JSM (Continuation m a)) Source #

data Debounce m a b Source #

runDebounce :: Debounce m a b -> (a -> (Text, Prop m b)) -> a -> (Text, Prop m b) Source #

data Throttle m a b Source #

runThrottle :: Throttle m a b -> (a -> (Text, Prop m b)) -> a -> (Text, Prop m b) Source #

baked :: JSM RawNode -> Html m a #

children :: Applicative f => ([Html m a] -> f [Html m a]) -> Html m a -> f (Html m a) #

flagProp :: Bool -> Prop m a #

injectProps :: [(Text, Prop m a)] -> Html m a -> Html m a #

listen :: Text -> a -> (Text, Prop m a) #

listenC :: Text -> Continuation m a -> (Text, Prop m a) #

listenRaw :: Text -> (RawNode -> RawEvent -> JSM (Continuation m a)) -> (Text, Prop m a) #

listener :: Continuation m a -> Prop m a #

listenerProp :: (RawNode -> RawEvent -> JSM (Continuation m a)) -> Prop m a #

mapChildren :: ([Html m a] -> [Html m a]) -> Html m a -> Html m a #

mapProps :: ([(Text, Prop m a)] -> [(Text, Prop m a)]) -> Html m a -> Html m a #

name :: Applicative f => (Text -> f Text) -> Html m a -> f (Html m a) #

props :: Applicative f => ([(Text, Prop m a)] -> f [(Text, Prop m a)]) -> Html m a -> f (Html m a) #

text :: Text -> Html m a #

textContent :: Applicative f => (Text -> f Text) -> Html m a -> f (Html m a) #

textProp :: Text -> Prop m a #

data Html (a :: Type -> Type) b #

Instances
Continuous Html 
Instance details

Defined in Shpadoinkle.Core

Methods

mapC :: (Functor m, Functor n) => (Continuation m a -> Continuation n b) -> Html m a -> Html n b

Monad m => Functor EndoIso EndoIso (Html m :: Type -> Type) 
Instance details

Defined in Shpadoinkle.Core

Methods

map :: EndoIso a b -> EndoIso (Html m a) (Html m b) #

IsString (Html m a) 
Instance details

Defined in Shpadoinkle.Core

Methods

fromString :: String -> Html m a #

data Prop (a :: Type -> Type) b #

Instances
Continuous Prop 
Instance details

Defined in Shpadoinkle.Core

Methods

mapC :: (Functor m, Functor n) => (Continuation m a -> Continuation n b) -> Prop m a -> Prop n b

IsString [(Text, Prop m a)] 
Instance details

Defined in Shpadoinkle.Core

Methods

fromString :: String -> [(Text, Prop m a)] #

Monad m => Functor EndoIso EndoIso (Prop m :: Type -> Type) 
Instance details

Defined in Shpadoinkle.Core

Methods

map :: EndoIso a b -> EndoIso (Prop m a) (Prop m b) #

IsString (Prop m a) 
Instance details

Defined in Shpadoinkle.Core

Methods

fromString :: String -> Prop m a #