| Copyright | (c) Jens Thomas |
|---|---|
| License | BSD3 |
| Maintainer | Jens Thomas <jetho@gmx.de> |
| Stability | experimental |
| Portability | non-portable (GADTs, CPP, DeriveDataTypeable) |
| Safe Haskell | Safe |
| Language | Haskell2010 |
System.Hclip
Description
A small cross-platform library for reading and modifying the system clipboard.
- getClipboard :: IO String
- setClipboard :: String -> IO ()
- modifyClipboard :: (String -> String) -> IO String
- modifyClipboard_ :: (String -> String) -> IO ()
- clearClipboard :: IO ()
- data ClipboardException
Documentation
getClipboard :: IO String Source #
Read clipboard contents.
setClipboard :: String -> IO () Source #
Set clipboard contents.
modifyClipboard :: (String -> String) -> IO String Source #
Apply function to clipboard and return its new contents.
clearClipboard :: IO () Source #
Delete Clipboard contents.
data ClipboardException Source #
Exceptions
Constructors
| UnsupportedOS String | |
| NoTextualData | |
| MissingCommands [String] |
Instances