The grapefruit-examples package

[ Tags: bsd3, frp, gui, library, reactivity, user-interfaces ] [ Propose Tags ]

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

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.


Dependencies base (>=3.0 && <5), colour (>=1.0 && <2.4), containers (>=0.1 && <0.6), fraction (>=0.0.1 && <0.2), grapefruit-frp (==0.1.*), grapefruit-records (==0.1.*), grapefruit-ui (==0.1.*) [details]
License BSD3
Copyright © 2007–2009 Brandenburgische Technische Universität Cottbus © 2011–2012 Wolfgang Jeltsch
Author Wolfgang Jeltsch
Category FRP, Reactivity, GUI, User Interfaces
Home page
Source repository this: darcs get --tag grapefruit-
Uploaded Tue Dec 11 19:01:32 UTC 2012 by WolfgangJeltsch
Distributions NixOS:
Downloads 2262 total (22 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees