Safe Haskell | None |
---|---|
Language | Haskell98 |
Designed to be imported as qualified
.
- data ClipboardException = EmptyClipboard SelectionTag
- write :: (BaseIO m, MonadLogger m) => Text -> m ()
- write' :: (BaseIO m, MonadLogger m) => SelectionTag -> Text -> m ()
- read :: (BaseIO m, Alternative m, MonadThrow m) => m Text
- read' :: (Alternative m, MonadThrow m, BaseIO m) => SelectionTag -> m Text
Documentation
data ClipboardException
EmptyClipboard SelectionTag |
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, MonadThrow m) => m Text
Read clipboard's content. Both selectionPrimary
and selectionClipboard
are inspected (in this order).
read' :: (Alternative m, MonadThrow m, BaseIO m) => SelectionTag -> m Text
Return the content from the given clipboard.