grapefruit-examples-0.0.0.0: Examples using the Grapefruit librarySource codeContentsIndex
Examples.Grapefruit.Simple
Description

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.

Synopsis
mainCircuit :: StdUIBackend uiBackend => UICircuit Window uiBackend era () (DSignal era ())
Documentation
mainCircuit :: StdUIBackend uiBackend => UICircuit Window uiBackend era () (DSignal era ())Source
The circuit describing the whole application.
Produced by Haddock version 2.4.2