Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- markdownToHTML :: Text -> Action Value
- markdownToHTML' :: FromJSON a => Text -> Action a
- makePandocReader :: PandocReader textType -> textType -> Action (Pandoc, Value)
- makePandocReader' :: FromJSON a => PandocReader textType -> textType -> Action (Pandoc, a)
- loadUsing :: PandocReader textType -> PandocWriter -> textType -> Action Value
- loadUsing' :: FromJSON a => PandocReader textType -> PandocWriter -> textType -> Action a
- convert :: (FromJSON a, ToJSON a, FromJSON b) => a -> Action b
Documentation
markdownToHTML' :: FromJSON a => Text -> Action a Source #
Like markdownToHTML
but allows returning any JSON serializable object
makePandocReader' :: FromJSON a => PandocReader textType -> textType -> Action (Pandoc, a) Source #
Like makePandocReader
but will deserialize the metadata into any object
which implements FromJSON
. Failure to deserialize will fail the Shake
build.
loadUsing' :: FromJSON a => PandocReader textType -> PandocWriter -> textType -> Action a Source #