blagda-0.1.0.1: Shake frontend for Agda blogging
Safe HaskellNone
LanguageHaskell2010

Blagda.Markdown

Synopsis

Documentation

data Reference Source #

Constructors

Reference 

Fields

Instances

Instances details
Eq Reference Source # 
Instance details

Defined in Blagda.Markdown

Show Reference Source # 
Instance details

Defined in Blagda.Markdown

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 #

Replace any expression $foo$-bar with ...$foo$-bar/span, so that the equation is not split when word wrapping.

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.

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.

emplace :: Eq a => [(a, b)] -> [(a, b)] -> [(a, b)] Source #

addLinkType Source #

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.