glazier-react-0.4.0.0: ReactJS binding using Glazier and Pipes.Fluid

Safe HaskellNone
LanguageHaskell2010

Glazier.React.Widget

Synopsis

Documentation

type family CommandOf w where ... Source #

Equations

CommandOf (Widget c a m p) = c 

type family ActionOf w where ... Source #

Equations

ActionOf (Widget c a m p) = a 

type family ModelOf w where ... Source #

Equations

ModelOf (Widget c a m p) = m 

type family PlanOf w where ... Source #

Equations

PlanOf (Widget c a m p) = p 

type family DesignOf w where ... Source #

Undecidable instances! But this is safe because 'ModelOf w' and 'PlanOf w' is guaranteed to be smaller than closed type family 'DesignOf w'.

Equations

DesignOf w = Design (ModelOf w) (PlanOf w) 

type family FrameOf w where ... Source #

Undecidable instances! But this is safe because 'ModelOf w' and 'PlanOf w' is guaranteed to be smaller than closed type family 'FrameOf w'.

Equations

FrameOf w = Frame (ModelOf w) (PlanOf w) 

type family SuperModelOf w where ... Source #

Undecidable instances! But this is safe because 'ModelOf w' and 'PlanOf w' is guaranteed to be smaller than closed type family 'SuperModelOf w'.

Equations

SuperModelOf w = SuperModel (ModelOf w) (PlanOf w) 

data Widget c a m p Source #

Record of functions for a widget. Contains everything you need to make the model, render, and run the event processing.

Constructors

Widget (Frame m p -> F (Maker a) p) (WindowT (Design m p) (ReactMlT Identity) ()) (GadgetT a (SuperModel m p) Identity (DList c)) 

Instances

(Disposing m, Disposing p) => IsWidget (Widget c a m p) Source # 

Methods

mkPlan :: Widget c a m p -> Frame (ModelOf (Widget c a m p)) (PlanOf (Widget c a m p)) -> F (Maker (ActionOf (Widget c a m p))) (PlanOf (Widget c a m p)) Source #

window :: Widget c a m p -> WindowT (Design (ModelOf (Widget c a m p)) (PlanOf (Widget c a m p))) (ReactMlT Identity) () Source #

gadget :: Widget c a m p -> GadgetT (ActionOf (Widget c a m p)) (SuperModel (ModelOf (Widget c a m p)) (PlanOf (Widget c a m p))) Identity (DList (CommandOf (Widget c a m p))) Source #

class (Disposing (ModelOf w), Disposing (PlanOf w)) => IsWidget w where Source #

This typeclass is convenient as it carries the 'Disposing Model' and 'Disposing Plan' constraints and allows treating 'Widget c a m p' as a type w

Minimal complete definition

mkPlan, window, gadget

Instances

(Disposing m, Disposing p) => IsWidget (Widget c a m p) Source # 

Methods

mkPlan :: Widget c a m p -> Frame (ModelOf (Widget c a m p)) (PlanOf (Widget c a m p)) -> F (Maker (ActionOf (Widget c a m p))) (PlanOf (Widget c a m p)) Source #

window :: Widget c a m p -> WindowT (Design (ModelOf (Widget c a m p)) (PlanOf (Widget c a m p))) (ReactMlT Identity) () Source #

gadget :: Widget c a m p -> GadgetT (ActionOf (Widget c a m p)) (SuperModel (ModelOf (Widget c a m p)) (PlanOf (Widget c a m p))) Identity (DList (CommandOf (Widget c a m p))) Source #