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


-- | Pandoc document conversion as an HTTP servant-server
--   
--   Pandoc-server provides pandoc's document conversion functions in an
--   HTTP server.
@package pandoc-server
@version 0.1.0.11

module Text.Pandoc.Server
app :: Application
type API = ReqBody '[JSON] Params :> Post '[OctetStream] ByteString :<|> ReqBody '[JSON] Params :> Post '[PlainText] Text :<|> ReqBody '[JSON] Params :> Post '[JSON] Output :<|> "batch" :> ReqBody '[JSON] [Params] :> Post '[JSON] [Output] :<|> "babelmark" :> QueryParam' '[Required] "text" Text :> QueryParam "from" Text :> QueryParam "to" Text :> QueryFlag "standalone" :> Get '[JSON] Value :<|> "version" :> Get '[PlainText, JSON] Text
data ServerOpts
ServerOpts :: Int -> Int -> ServerOpts
[serverPort] :: ServerOpts -> Int
[serverTimeout] :: ServerOpts -> Int
data Params
Params :: Opt -> Text -> Maybe (Map FilePath Blob) -> Maybe Bool -> Params
[options] :: Params -> Opt
[text] :: Params -> Text
[files] :: Params -> Maybe (Map FilePath Blob)
[citeproc] :: Params -> Maybe Bool
newtype Blob
Blob :: ByteString -> Blob
parseServerOptsFromArgs :: [String] -> IO ServerOpts
instance Data.Default.Internal.Default Text.Pandoc.Server.Params
instance GHC.Classes.Eq Text.Pandoc.Server.Blob
instance Data.Aeson.Types.FromJSON.FromJSON Text.Pandoc.Server.Blob
instance Data.Aeson.Types.FromJSON.FromJSON Text.Pandoc.Server.Params
instance GHC.Internal.Generics.Generic Text.Pandoc.Server.Message
instance GHC.Internal.Generics.Generic Text.Pandoc.Server.Output
instance GHC.Internal.Show.Show Text.Pandoc.Server.Blob
instance GHC.Internal.Show.Show Text.Pandoc.Server.Message
instance GHC.Internal.Show.Show Text.Pandoc.Server.Output
instance GHC.Internal.Show.Show Text.Pandoc.Server.Params
instance GHC.Internal.Show.Show Text.Pandoc.Server.ServerOpts
instance Data.Aeson.Types.ToJSON.ToJSON Text.Pandoc.Server.Blob
instance Data.Aeson.Types.ToJSON.ToJSON Text.Pandoc.Server.Message
instance Data.Aeson.Types.ToJSON.ToJSON Text.Pandoc.Server.Output
instance Data.Aeson.Types.ToJSON.ToJSON Text.Pandoc.Server.Params
