hbro-1.3.0.0: Minimal extensible web-browser

Safe HaskellNone
LanguageHaskell98

Hbro.Clipboard

Description

Designed to be imported as qualified.

Synopsis

Documentation

write :: (BaseIO m, MonadLogger m) => Text -> m ()

Write given Text to the selection-primary clipboard

write' :: (BaseIO m, MonadLogger m) => SelectionTag -> Text -> m ()

Write given text to the given clipboard

read :: (BaseIO m, Alternative m, MonadError Text m) => m Text

Read clipboard's content. Both selectionPrimary and selectionClipboard are inspected (in this order).

read' :: (Alternative m, MonadError Text m, BaseIO m) => SelectionTag -> m Text

Return the content from the given clipboard.