| Safe Haskell | None |
|---|---|
| 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 Methods parseJSON :: Value -> Parser Params parseJSONList :: Value -> Parser [Params] omittedField :: Maybe Params | |
| ToJSON Params Source # | |
Defined in Text.Pandoc.Server Methods toEncoding :: Params -> Encoding toJSONList :: [Params] -> Value toEncodingList :: [Params] -> Encoding | |
| Default Params Source # | |
Defined in Text.Pandoc.Server | |
| Show Params Source # | |
Constructors
| Blob ByteString |
Instances
| FromJSON Blob Source # | |
Defined in Text.Pandoc.Server Methods parseJSON :: Value -> Parser Blob parseJSONList :: Value -> Parser [Blob] omittedField :: Maybe Blob | |
| 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 #