grapefruit-examples

Examples using the Grapefruit library

https://grapefruit-project.org/

Latest on Hackage:0.1.0.7

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Wolfgang Jeltsch
Maintained by [email protected]

Grapefruit is a library for Functional Reactive Programming (FRP) with a focus on user interfaces. FRP makes it possible to implement reactive and interactive systems in a declarative style. To learn more about FRP, have a look at http://haskell.org/haskellwiki/Functional_Reactive_Programming.

This package contains a collection of examples using Grapefruit.

For running an example, you can start GHCi and enter the following:

import Graphics.UI.Grapefruit.Circuit
import Graphics.UI.Grapefruit.UIBackend
import Examples.Grapefruit.Example
run UIBackend mainCircuit ()

Replace Example with the name of the example to run and UIBackend with the name of the UI backend you want to use. At the moment, the only examples are Simple, Switching, Converter, ListView, and SetView, and the only UI backend is GTK.