lgtk-0.2: lens-based GUI with Gtk backend

Safe HaskellNone

GUI.MLens.Gtk.Demos.Tri

Description

An editor for integers x, y, z such that x + y = z always hold and the last edited value change.

Synopsis

Documentation

data S Source

Information pieces: what is known?

Constructors

X Int 
Y Int 
XY Int 

getX :: [S] -> IntSource

Getter

getXY :: [S] -> IntSource

Getter

getY :: [S] -> IntSource

Getter

setX :: Int -> [S] -> [S]Source

Setter

setXY :: Int -> [S] -> [S]Source

Setter

setY :: Int -> [S] -> [S]Source

Setter

tri :: (Functor m, ExtRef m) => I mSource

The editor