Copyright | (c) Mike Solomon 2020 |
---|---|
License | GPL-3 |
Maintainer | mike@meeshkan.com |
Stability | experimental |
Portability | POSIX, Windows |
Safe Haskell | Safe |
Language | Haskell2010 |
This module contains the base functions for plzwrk, notably the family of plzwrk functions needed for plzwrk to work. It also exports most of the utility functions used for building web applications, like event handling and attribute wrangling.
Documentation
hydrate :: s -> (s -> Node s opq) -> HydratedNode s opq Source #
dats :: p -> Attributes s opq Source #
dats' :: Attributes s opq Source #
data HydratedNode s opq Source #
HydratedElement | |
| |
HydratedTextNode String |
Instances
Show (HydratedNode s opq) Source # | |
Defined in Web.Framework.Plzwrk.Base showsPrec :: Int -> HydratedNode s opq -> ShowS # show :: HydratedNode s opq -> String # showList :: [HydratedNode s opq] -> ShowS # |
data Attributes s opq Source #
Instances
Show (Attributes s opq) Source # | |
Defined in Web.Framework.Plzwrk.Base showsPrec :: Int -> Attributes s opq -> ShowS # show :: Attributes s opq -> String # showList :: [Attributes s opq] -> ShowS # |
data Browserful jsval Source #
Browserful | |
|
reconcile :: IORef (OldStuff state jsval) -> (state -> Node state jsval) -> jsval -> jsval -> Maybe (DomifiedNode jsval) -> Maybe (HydratedNode state jsval) -> ReaderT (Browserful jsval) IO (Maybe (DomifiedNode jsval)) Source #
(<.>) :: (s -> Attributes s opq) -> (s -> Attributes s opq) -> s -> Attributes s opq Source #
wClass :: String -> s -> Attributes s opq Source #
wClass' :: String -> Attributes s opq Source #
wClasses :: [String] -> s -> Attributes s opq Source #
wClasses' :: [String] -> Attributes s opq Source #
wOnClick :: (opq -> s -> IO s) -> s -> Attributes s opq Source #
wOnClick' :: (opq -> s -> IO s) -> Attributes s opq Source #
wId :: String -> s -> Attributes s opq Source #
wId' :: String -> Attributes s opq Source #
wOnInput :: (opq -> s -> IO s) -> s -> Attributes s opq Source #
wOnInput' :: (opq -> s -> IO s) -> Attributes s opq Source #