| Portability | A small cross-platform library for reading and modifying the system clipboard. |
|---|---|
| Stability | experimental |
| Maintainer | Jens Thomas <jetho@gmx.de> |
| Safe Haskell | Safe-Inferred |
System.Hclip
Description
- getClipboard :: IO String
- setClipboard :: String -> IO String
- modifyClipboard :: (String -> String) -> IO String
- data ClipboardException
Documentation
getClipboard :: IO StringSource
Read clipboard contents.
setClipboard :: String -> IO StringSource
Set clipboard contents.
modifyClipboard :: (String -> String) -> IO StringSource
Apply function to clipboard and return its new contents.
data ClipboardException Source
Exceptions
Constructors
| UnsupportedOS String | |
| NoTextualData | |
| MissingCommands [String] |