helic-0.6.1.0: Clipboard Manager
Safe HaskellSafe-Inferred
LanguageGHC2021

Helic.Effect.XClipboard

Description

The XClipboard Effect

Synopsis

Documentation

data XClipboard :: Effect where Source #

Communicate with the X11 clipboard.

Constructors

Current :: XClipboard m (Maybe Text)

Get the current clipboard contents, if available.

Set :: Text -> XClipboard m ()

Set the clipboard contents.

Sync :: Text -> Selection -> XClipboard m ()

Copy the content of the specified selection to the clipboard selection.

sync :: forall r. Member XClipboard r => Text -> Selection -> Sem r () Source #

Copy the content of the specified selection to the clipboard selection.

set :: forall r. Member XClipboard r => Text -> Sem r () Source #

Set the clipboard contents.

current :: forall r. Member XClipboard r => Sem r (Maybe Text) Source #

Get the current clipboard contents, if available.