keera-hails-mvc-model-protectedmodel-0.0.3.5: Rapid Gtk Application Development - Protected Reactive Models

Safe HaskellNone
LanguageHaskell98

Hails.MVC.Model.THFields

Description

This module uses Template Haskell to declare reactive fields for a given model field and type that access the ProtectedModel in the IO Monad and the reactive model.

Synopsis

Documentation

protectedField :: String -> Q Type -> String -> String -> Q [Dec] Source

Creates a setter and a getter that works at ProtectedModel level inside the IO Monad

reactiveField :: String -> Q Type -> Q [Dec] Source

Creates a setter and a getter that works at ReactiveModel level.

reactiveFieldE :: String -> String -> Q Type -> Q [Dec] Source

Creates a setter and a getter that works at ReactiveModel level. using a specific event name

reactiveFieldEvUndo :: String -> String -> Q Type -> Q [Dec] Source

Creates a setter and a getter that works at ReactiveModel level. using a specific event name