Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
The XClipboard Effect
Synopsis
- data XClipboard :: Effect where
- Current :: XClipboard m (Maybe Text)
- Set :: Text -> XClipboard m ()
- Sync :: Text -> Selection -> XClipboard m ()
- sync :: forall r. Member XClipboard r => Text -> Selection -> Sem r ()
- set :: forall r. Member XClipboard r => Text -> Sem r ()
- current :: forall r. Member XClipboard r => Sem r (Maybe Text)
Documentation
data XClipboard :: Effect where Source #
Communicate with the X11 clipboard.
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. |