Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Text.Pandoc.Server
Documentation
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))))) Source #
data ServerOpts Source #
Constructors
ServerOpts | |
Fields
|
Instances
Show ServerOpts Source # | |
Defined in Text.Pandoc.Server Methods showsPrec :: Int -> ServerOpts -> ShowS show :: ServerOpts -> String showList :: [ServerOpts] -> ShowS |
Constructors
Params | |
Instances
FromJSON Params Source # | |
Defined in Text.Pandoc.Server | |
ToJSON Params Source # | |
Defined in Text.Pandoc.Server Methods toEncoding :: Params -> Encoding toJSONList :: [Params] -> Value toEncodingList :: [Params] -> Encoding | |
Show Params Source # | |
Default Params Source # | |
Defined in Text.Pandoc.Server |
Constructors
Blob ByteString |
Instances
FromJSON Blob Source # | |
Defined in Text.Pandoc.Server | |
ToJSON Blob Source # | |
Defined in Text.Pandoc.Server Methods toEncoding :: Blob -> Encoding toJSONList :: [Blob] -> Value toEncodingList :: [Blob] -> Encoding | |
Show Blob Source # | |
Eq Blob Source # | |
parseServerOptsFromArgs :: [String] -> IO ServerOpts Source #