helic-0.6.1.0: Clipboard Manager
Safe HaskellSafe-Inferred
LanguageGHC2021

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, Lock, 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 [Mask, 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 q r0 x. s -> e (Sem r0) x -> Tactical e (Sem r0) (Stop Text ': (Opaque q ': r)) x) -> InterpreterFor (Scoped_ e !! Text) r Source #

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