Clipboard-2.3.2.0: System clipboard interface.

Safe HaskellNone
LanguageHaskell98

System.Clipboard

Contents

Description

System Clipboard Interface. It should work on both Windows and Unix (X11).

Synopsis

Clipboard interface

setClipboardString :: String -> IO () Source #

Write a string to the clipboard.

getClipboardString :: IO (Maybe String) Source #

Get the content of the clipboard as a String. It returns Nothing if the clipboard doesn't contain textual data.

modifyClipboardString :: (String -> String) -> IO Bool Source #

Modify the clipboard content. If the clipboard has textual data, this function modifies its content and returns True. Otherwise, it does nothing and returns False.