Module
Jelly.Component
- Package
- purescript-jelly
- Repository
- yukikurage/purescript-jelly
#ComponentF Source
data ComponentF :: (Type -> Type) -> Type -> Type
data ComponentF m f
ComponentF is a functor that represents one operations in ComponentM
Constructors
ComponentEl String (Array (Prop m)) (Component m) f
ComponentElNS String String (Array (Prop m)) (Component m) f
ComponentElVoid String (Array (Prop m)) f
ComponentRawSig (Signal String) f
ComponentTextSig (Signal String) f
ComponentDoctype String String String f
ComponentHooks (m (Component m)) f
ComponentSwitch (Signal (Component m)) f
Instances
Functor (ComponentF m)
#ComponentM Source
newtype ComponentM :: (Type -> Type) -> Type -> Type
newtype ComponentM m a
ComponentM is a monad that represents a component
Constructors
ComponentM (Free (ComponentF m) a)
Instances
(Functor m) => Functor (ComponentM m)
Apply (ComponentM m)
Applicative (ComponentM m)
Bind (ComponentM m)
Monad (ComponentM m)
MonadRec (ComponentM m)
(Semigroup a) => Semigroup (ComponentM m a)
(Monoid a) => Monoid (ComponentM m a)
#foldComponentM Source
foldComponentM :: forall m n. MonadRec n => ((ComponentF m) ~> n) -> (ComponentM m) ~> n
Fold ComponentM into another monad, using foldFree.
#doctypeHtml Source
doctypeHtml :: forall m. Component m
Represents <DOCTYPE html>