-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | CLI for pasting to lpaste.net
--
@package PastePipe
@version 1.8
-- | Configuration and communication with lpaste.net
module Utils.PastePipe
-- | Configuration type for PastePipe:
data Config
Config :: String -> String -> String -> String -> String -> Bool -> Bool -> Config
userName :: Config -> String
language :: Config -> String
channel :: Config -> String
title :: Config -> String
uri :: Config -> String
private :: Config -> Bool
test :: Config -> Bool
-- | Default config builder
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
-- | Make a pair suitable for encoding out of private setting.
mkPrivatePair :: Config -> (String, String)
-- | Creates the request to post a chunk of content.
buildRequest :: Config -> String -> Request String
-- | Just print out the fields and the URI that we would have used
-- if we ran with the given Config.
fakePost :: Config -> String -> IO URI
instance Typeable Config
instance Show Config
instance Data Config