grapefruit-examples-0.1.0.7: Examples using the Grapefruit library

Safe HaskellNone
LanguageHaskell98

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

Documentation

mainCircuit :: BasicUIBackend uiBackend => UICircuit Window uiBackend era () (DSignal era ()) Source #

The circuit describing the whole application.