-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Submit and retrieve paste output from CodePad.org. -- @package codepad @version 0.1 -- | Simple pasting API for CodePad.org. module Web.Codepad -- | A URL. type URL = String -- | Code to be pasted. type Code = String -- | A CodePad paste id e.g. HZPquoIO. type PasteId = String -- | Paste output type PasteOutput = String -- | Alias for supported CodePad languages. type LangName = String -- | CodePad's domain. codepadUrl :: URL -- | A CodePad URL of a page containing a list of supported languages. codepadLangsURL :: URL -- | Make a CodePad URL for the given paste id. pasteURL :: PasteId -> URL -- | Paste some code and get the run output too. pasteAndRun :: MonadIO m => Code -> LangName -> Bool -> m (Maybe (PasteId, PasteOutput)) -- | Perform a paste. pasteCode :: MonadIO m => Code -> LangName -> Bool -> Bool -> m (Maybe PasteId) -- | Get the run output for a paste id. pasteOutput :: MonadIO m => PasteId -> m (Maybe PasteOutput) -- | Get the list of supported languages. supportedLangs :: MonadIO m => m (Maybe [LangName]) -- | Get the paste output. parseOutput :: String -> Maybe PasteOutput -- | Extract the available languages from the CodePad page. parseLangs :: String -> [LangName]