-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | System clipboard interface.
--   
--   <i>Clipboard</i> is a library for easily interfacing with the system
--   clipboard with additional unicode support. Currently, only in a
--   Windows or GNU/Linux (X11) system.
--   
--   For example, if you type:
--   
--   <pre>
--   $ setClipboardString "Hello, World!"
--   </pre>
--   
--   Then you have <tt>"Hello, World!"</tt> available to be pasted wherever
--   you want.
--   
--   Now, if you type:
--   
--   <pre>
--   $ modifyClipboardString reverse
--   </pre>
--   
--   You will have <tt>"!dlroW ,olleH"</tt> in your clipboard. So:
--   
--   <pre>
--   $ getClipboardString
--   "!dlroW ,olleH"
--   </pre>
--   
--   The X11 version depends on the <tt>X11</tt> package, so you will need
--   the X11 development library available on your system at compile time.
--   You can install it by <tt>sudo apt-get install libxrandr-dev</tt> (or
--   the equivalent on your system).
@package Clipboard
@version 2.3.2.0


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

-- | Write a string to the clipboard.
setClipboardString :: String -> IO ()

-- | Get the content of the clipboard as a <a>String</a>. It returns
--   <a>Nothing</a> if the clipboard doesn't contain <i>textual</i> data.
getClipboardString :: IO (Maybe String)

-- | Modify the clipboard content. If the clipboard has <i>textual</i>
--   data, this function modifies its content and returns <a>True</a>.
--   Otherwise, it does nothing and returns <a>False</a>.
modifyClipboardString :: (String -> String) -> IO Bool
