haste-perch-0.1.0.0: Create dynamic HTML in the browser using blaze-html-style notation with Haste

Safe HaskellNone

Haste.Perch

Description

Monad and Monoid instances for a builder that hang DOM elements from the current parent element. It uses Haste.DOM from the haste-compiler

Documentation

newtype PerchM a Source

Constructors

Perch 

Fields

build :: Elem -> IO Elem
 

Instances

Monad PerchM 
Typeable1 PerchM 
Monoid (PerchM a) 
ToElem (PerchM a) 

class ToElem a whereSource

Methods

toElem :: a -> PerchSource

Instances

ToElem String 
Show a => ToElem a 
ToElem (PerchM a) 

attr :: PerchM a1 -> (PropID, String) -> PerchM aSource

nelem :: String -> PerchM aSource

child :: ToElem a => Perch -> a -> PerchSource

addEvent :: Perch -> Event IO b -> IO () -> PerchSource

elemsByTagName :: String -> IO [Elem]Source

parent :: Elem -> IO ElemSource

div :: ToElem a => a -> PerchSource

p :: ToElem a => a -> PerchSource

b :: ToElem a => a -> PerchSource

(!) :: (t -> PerchM a1) -> (PropID, String) -> t -> PerchM aSource

atr :: t -> t1 -> (t, t1)Source