| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ema.Route.Lib.Extra.PandocRoute
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.
Constructors
| PandocRoute | |
Fields | |
Instances
mkPandocRoute :: FilePath -> Maybe (String, PandocRoute) Source #
Model and Arg
Constructors
| Model | |
Fields
| |
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.2.0-Fz4pnf0y9eAKxY7UdOyPdm" '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)))) | |
Constructors
| Arg | |
Fields | |
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.2.0-Fz4pnf0y9eAKxY7UdOyPdm" '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 #
Constructors
| PandocHtml | |
Fields
| |
Instances
| Generic PandocHtml Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute Associated Types type Rep PandocHtml :: Type -> Type # | |
| Eq PandocHtml Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute | |
| 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.2.0-Fz4pnf0y9eAKxY7UdOyPdm" 'True) (C1 ('MetaCons "PandocHtml" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPandocHtml") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |
data PandocError Source #
Constructors
| PandocError_Missing Text | |
| PandocError_RenderError Text |
Instances
| Exception PandocError Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute Methods toException :: PandocError -> SomeException # fromException :: SomeException -> Maybe PandocError # displayException :: PandocError -> String # | |
| Show PandocError Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute Methods showsPrec :: Int -> PandocError -> ShowS # show :: PandocError -> String # showList :: [PandocError] -> ShowS # | |
| Eq PandocError Source # | |
Defined in Ema.Route.Lib.Extra.PandocRoute | |