Safe Haskell | None |
---|
The main LGtk interface, ideally users should import only this module.
- module Control.Category
- module Data.MLens
- module Data.MLens.Ref
- module Control.MLens.ExtRef
- module GUI.MLens.Gtk.Interface
- runI :: (forall m. (Functor m, ExtRef m) => I m) -> IO ()
- unsafeRunI :: (forall i. I (Ext i IO)) -> IO ()
- vcat :: [I m] -> I m
- hcat :: [I m] -> I m
- smartButton :: (Eq a, Monad m, Functor m) => Free m String -> (a -> m a) -> MLens m () a -> I m
- mapI :: (Monad m, Functor m, Monad n, Functor n) => Morph n m -> Morph m n -> I m -> I n
- toFree :: (Functor m, Monad m) => m a -> Free m a
Documentation
module Control.Category
module Data.MLens
module Data.MLens.Ref
module Control.MLens.ExtRef
module GUI.MLens.Gtk.Interface
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
smartButton :: (Eq a, Monad m, Functor m) => Free m String -> (a -> m a) -> MLens m () a -> I mSource