Clipboard-2.3.0.2: System clipboard interface.

Safe HaskellNone
LanguageHaskell98

System.Clipboard

Contents

Description

System Clipboard Interface. It should work on both Windows and Unix (X11). The latter is still experimental.

Synopsis

Clipboard interface

setClipboardString :: String -> IO () Source #

Writes a string to the clipboard.

getClipboardString :: IO (Maybe String) Source #

Gets the contents of the clipboard as a String. Returns Nothing if the clipboard doesn't contain textual data.

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

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