plzwrk-0.0.0.1: A front-end framework

Copyright(c) Mike Solomon 2020
LicenseGPL-3
Maintainermike@meeshkan.com
Stabilityexperimental
PortabilityPOSIX, Windows
Safe HaskellSafe
LanguageHaskell2010

Web.Framework.Plzwrk

Description

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 #

data Node s opq Source #

Constructors

Element String (s -> Attributes s opq) [s -> Node s opq] 
TextNode String 
Instances
Show (Node s opq) Source # 
Instance details

Defined in Web.Framework.Plzwrk.Base

Methods

showsPrec :: Int -> Node s opq -> ShowS #

show :: Node s opq -> String #

showList :: [Node s opq] -> ShowS #

data HydratedNode s opq Source #

Instances
Show (HydratedNode s opq) Source # 
Instance details

Defined in Web.Framework.Plzwrk.Base

Methods

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 # 
Instance details

Defined in Web.Framework.Plzwrk.Base

Methods

showsPrec :: Int -> Attributes s opq -> ShowS #

show :: Attributes s opq -> String #

showList :: [Attributes s opq] -> ShowS #

data Browserful jsval Source #

Constructors

Browserful 

Fields

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 #

plzwrk :: (state -> Node state jsval) -> state -> Browserful jsval -> String -> IO () Source #

plzwrk' :: (state -> Node state jsval) -> state -> Browserful jsval -> IO () Source #

plzwrk'_ :: (Int -> Node Int jsval) -> Browserful jsval -> IO () Source #

data OldStuff state jsval Source #

Constructors

OldStuff 

Fields

(@=) :: k -> v -> (k, v) Source #

(<.>) :: (s -> Attributes s opq) -> (s -> Attributes s opq) -> s -> Attributes s opq Source #

wStyle :: String -> String -> s -> Attributes s opq Source #

wStyles :: [(String, String)] -> s -> Attributes s opq Source #

wClass :: String -> s -> Attributes s opq Source #

wClasses :: [String] -> s -> 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 #

wOnInput :: (opq -> s -> IO s) -> s -> Attributes s opq Source #

wOnInput' :: (opq -> s -> IO s) -> Attributes s opq Source #

wAttr :: String -> String -> s -> Attributes s opq Source #

wAttrs :: [(String, String)] -> s -> Attributes s opq Source #