| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Blagda.Markdown
Synopsis
- data Reference = Reference {
- refHref :: Text
 - refClasses :: [Text]
 
 - loadMarkdown :: (Meta -> a) -> String -> FilePath -> Action (Post Pandoc a)
 - htmlInl :: Text -> Inline
 - patchInlines :: [Inline] -> [Inline]
 - patchBlock :: MonadIO f => Block -> f Block
 - patchInline :: Inline -> Action Inline
 - mStr :: String -> MetaValue
 - patchMeta :: String -> String -> Meta -> Meta
 - parseFileIdents :: Text -> Action (Map Text Reference, Map Text Text)
 - defaultWriterOptions :: WriterOptions
 - renderPost :: (Text -> Action (Map Text Reference, Map Text Text)) -> WriterOptions -> Post Pandoc a -> Action (Post Text a)
 - renderHTML5 :: [Tag Text] -> Text
 - parseAgdaLink :: (Text -> Action (Map Text Reference, Map Text Text)) -> Tag Text -> Action (Tag Text)
 - emplace :: Eq a => [(a, b)] -> [(a, b)] -> [(a, b)]
 - addLinkType :: (Text -> Action (Map Text Reference, Map Text Text)) -> (() -> Action (Map Text Text)) -> Tag Text -> Action (Tag Text)
 
Documentation
Constructors
| Reference | |
Fields 
  | |
Instances
loadMarkdown :: (Meta -> a) -> String -> FilePath -> Action (Post Pandoc a) Source #
The return type here is whether or not this markdown file is a BLOG POST. Even if it isn't, the file still gets generated.
patchInlines :: [Inline] -> [Inline] Source #
parseFileIdents :: Text -> Action (Map Text Reference, Map Text Text) Source #
Parse an Agda module (in the final build directory) to find a list of its definitions.
renderPost :: (Text -> Action (Map Text Reference, Map Text Text)) -> WriterOptions -> Post Pandoc a -> Action (Post Text a) Source #
parseAgdaLink :: (Text -> Action (Map Text Reference, Map Text Text)) -> Tag Text -> Action (Tag Text) Source #
Possibly interpret an href="agda://" link to be a honest-to-god link to the definition.
Arguments
| :: (Text -> Action (Map Text Reference, Map Text Text)) | Lookup an ident from a module name and location  | 
| -> (() -> Action (Map Text Text)) | Lookup a type from a module name and ident  | 
| -> Tag Text | |
| -> Action (Tag Text) | 
Lookup an identifier given a module name and ID within that module, returning its type.