helic-0.5.3.0: Clipboard Manager
Safe HaskellNone
LanguageHaskell2010

Helic.Interpreter.GtkMain

Description

An interpreter for GtkMain that uses MVars. Internal.

Synopsis

Documentation

handleGtkMain :: forall s wait restart e m r a. TimeUnit wait => TimeUnit restart => Members [Resource, Sync GtkLock, Sync StartGtkMain, Sync (GtkResource s)] r => wait -> restart -> GtkMain s m a -> Tactical e m r a Source #

Interpret the GTK main loop communication bridge with MVars.

interpretGtkMain :: forall s wait restart r. TimeUnit wait => TimeUnit restart => Members [Resource, Race, Embed IO] r => wait -> restart -> InterpreterFor (GtkMain s) r Source #

Interpret the GTK main loop communication bridge with MVars.

interpretWithGtk :: forall e s r. Members [GtkMain s, Log] r => (forall r0 x. s -> e (Sem r0) x -> Tactical e (Sem r0) (Stop Text ': r) x) -> InterpreterFor (Scoped s e !! Text) r Source #

Scope an effect that uses a GTK main loop resource by acquiring it via GtkMain.