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


-- | A small cross-platform library for reading and modifying the system clipboard.
--   
--   A small cross-platform library for reading and modifying the system
--   clipboard.
--   
--   Hclip works on Windows, Mac OS X and Linux (but see the requirements
--   below!).
--   
--   Requirements:
--   
--   <ul>
--   <li>Windows: No additional requirements.</li>
--   <li>Mac OS X: Requires the pbcopy and pbpaste commands, which ship
--   with Mac OS X.</li>
--   <li>Linux: Requires xclip or xsel installed.</li>
--   </ul>
@package Hclip
@version 3.0.0.4


-- | A small cross-platform library for reading and modifying the system
--   clipboard.
module System.Hclip

-- | Read clipboard contents.
getClipboard :: IO String

-- | Set clipboard contents.
setClipboard :: String -> IO ()

-- | Apply function to clipboard and return its new contents.
modifyClipboard :: (String -> String) -> IO String

-- | Apply function to clipboard.
modifyClipboard_ :: (String -> String) -> IO ()

-- | Delete Clipboard contents.
clearClipboard :: IO ()

-- | Exceptions
data ClipboardException
UnsupportedOS :: String -> ClipboardException
NoTextualData :: ClipboardException
MissingCommands :: [String] -> ClipboardException
instance GHC.Exception.Type.Exception System.Hclip.ClipboardException
instance GHC.Show.Show System.Hclip.ClipboardException
