-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | CLI for pasting to lpaste.net -- @package PastePipe @version 1.7 -- | Configuration and communication with lpaste.net module Utils.PastePipe -- | Configuration type for PastePipe: data Config Config :: String -> String -> String -> String -> String -> Bool -> Config userName :: Config -> String language :: Config -> String channel :: Config -> String title :: Config -> String uri :: Config -> String test :: Config -> Bool config :: String -> Config -- | Takes a string to post to the default and returns the URI. Client code -- is expected to catch any exceptions. postWithDefaults :: String -> IO URI -- | Define an output handler based on the user-specified verbosity. outHandler :: String -> IO () -- | The "root" uri for lpaste.net defaultUri :: String -- | The URI for posting new pastes to lpaste. This isn't guaranteed to -- trigger a failure on all execution paths, as-is. saveUri :: String -> URI -- | composes the core uri and a string to create a usable URI buildURI :: String -> String -> URI -- | Posts the given content to lpaste.net, returning the new uri. post :: Config -> String -> IO URI -- | Creates the request to post a chunk of content. buildRequest :: Config -> String -> Request String fakePost :: Config -> String -> IO URI instance Typeable Config instance Show Config instance Data Config