Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype PandocRoute = PandocRoute {}
- mkPandocRoute :: FilePath -> Maybe (String, PandocRoute)
- data Model = Model {}
- data Arg = Arg {}
- lookupPandocRoute :: Model -> PandocRoute -> Maybe (Pandoc, Pandoc -> PandocHtml)
- newtype PandocHtml = PandocHtml {
- unPandocHtml :: Text
- data PandocError
Route
newtype PandocRoute Source #
Represents the relative path to a file that pandoc can parse.
Instances
mkPandocRoute :: FilePath -> Maybe (String, PandocRoute) Source #
Model and Arg
Model | |
|
Instances
Generic Model Source # | |
type Rep Model Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute type Rep Model = D1 ('MetaData "Model" "Ema.Route.Lib.Extra.PandocRoute" "ema-0.8.0.0-5bg2bjbHL6CHBpkm3ElH3L" 'False) (C1 ('MetaCons "Model" 'PrefixI 'True) (S1 ('MetaSel ('Just "modelArg") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Arg) :*: S1 ('MetaSel ('Just "modelPandocs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map PandocRoute Pandoc)))) |
Instances
Generic Arg Source # | |
Default Arg Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute | |
type Rep Arg Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute type Rep Arg = D1 ('MetaData "Arg" "Ema.Route.Lib.Extra.PandocRoute" "ema-0.8.0.0-5bg2bjbHL6CHBpkm3ElH3L" 'False) (C1 ('MetaCons "Arg" 'PrefixI 'True) ((S1 ('MetaSel ('Just "argBaseDir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "argFormats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set String))) :*: (S1 ('MetaSel ('Just "argReaderOpts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReaderOptions) :*: S1 ('MetaSel ('Just "argWriterOpts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WriterOptions)))) |
Looking up Pandoc values in model
lookupPandocRoute :: Model -> PandocRoute -> Maybe (Pandoc, Pandoc -> PandocHtml) Source #
Rendering
newtype PandocHtml Source #
Instances
Eq PandocHtml Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute (==) :: PandocHtml -> PandocHtml -> Bool # (/=) :: PandocHtml -> PandocHtml -> Bool # | |
Generic PandocHtml Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute type Rep PandocHtml :: Type -> Type # from :: PandocHtml -> Rep PandocHtml x # to :: Rep PandocHtml x -> PandocHtml # | |
type Rep PandocHtml Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute type Rep PandocHtml = D1 ('MetaData "PandocHtml" "Ema.Route.Lib.Extra.PandocRoute" "ema-0.8.0.0-5bg2bjbHL6CHBpkm3ElH3L" 'True) (C1 ('MetaCons "PandocHtml" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPandocHtml") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data PandocError Source #
Instances
Eq PandocError Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute (==) :: PandocError -> PandocError -> Bool # (/=) :: PandocError -> PandocError -> Bool # | |
Show PandocError Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute showsPrec :: Int -> PandocError -> ShowS # show :: PandocError -> String # showList :: [PandocError] -> ShowS # | |
Exception PandocError Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute |