Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type family CommandOf w where ...
- type family ActionOf w where ...
- type family ModelOf w where ...
- type family PlanOf w where ...
- type family DesignOf w where ...
- type family FrameOf w where ...
- type family SuperModelOf w where ...
- data Widget c a m p = Widget (Frame m p -> F (Maker a) p) (WindowT (Design m p) (ReactMlT Identity) ()) (GadgetT a (SuperModel m p) Identity (DList c))
- class (Disposing (ModelOf w), Disposing (PlanOf w)) => IsWidget w where
- mkSuperModel :: IsWidget w => w -> ModelOf w -> F (Maker (ActionOf w)) (SuperModel (ModelOf w) (PlanOf w))
Documentation
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'.
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'.
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'.
SuperModelOf w = SuperModel (ModelOf w) (PlanOf w) |
Record of functions for a widget. Contains everything you need to make the model, render, and run the event processing.
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