-- 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:
--   
--   
--   
- Windows: No additional requirements.
--   
- Mac OS X: Requires the pbcopy and pbpaste commands, which ship
--   with Mac OS X.
--   
- Linux: Requires xclip or xsel installed.
--   
@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.Internal.Exception.Type.Exception System.Hclip.ClipboardException
instance GHC.Internal.Show.Show System.Hclip.ClipboardException
