lgtk-0.2: lens-based GUI with Gtk backend

Safe HaskellNone

GUI.MLens.Gtk

Contents

Description

The main LGtk interface, ideally users should import only this module.

Synopsis

Documentation

module Data.MLens

Running (rendering) and interface description

runI :: (forall m. (Functor m, ExtRef m) => I m) -> IO ()Source

Run (render) and interface description

unsafeRunI :: (forall i. I (Ext i IO)) -> IO ()Source

Run (render) and interface description

Unsafe only if you do nasty things in the IO monad, like forking threads

Composed

vcat :: [I m] -> I mSource

hcat :: [I m] -> I mSource

smartButton :: (Eq a, Monad m, Functor m) => Free m String -> (a -> m a) -> MLens m () a -> I mSource

Auxiliary functions

mapI :: (Monad m, Functor m, Monad n, Functor n) => Morph n m -> Morph m n -> I m -> I nSource

toFree :: (Functor m, Monad m) => m a -> Free m aSource