Safe Haskell | None |
---|---|
Language | Haskell98 |
A Grapefruit example which demonstrates the use of feedback loops.
A button with one star is shown. Each time, the user clicks on the button, one star is added to
the caption of the button. The interesting thing about this is that the button’s input
depends on the button’s output. So you need the ArrowLoop
instance of UICircuit
.
- mainCircuit :: BasicUIBackend uiBackend => UICircuit Window uiBackend era () (DSignal era ())
Documentation
mainCircuit :: BasicUIBackend uiBackend => UICircuit Window uiBackend era () (DSignal era ()) Source #
The circuit describing the whole application.