Skip to content

Instantly share code, notes, and snippets.

@Kiwi
Last active May 16, 2019 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kiwi/c3d02b3addc3d28649668aadef284aab to your computer and use it in GitHub Desktop.
Save Kiwi/c3d02b3addc3d28649668aadef284aab to your computer and use it in GitHub Desktop.
module Site.Compilers
( customPandocCompiler
, anchorsPandocCompiler
, includeCodePandocCompiler
, feedCompiler
) where
import Hakyll
( Compiler,
Item,
defaultHakyllReaderOptions,
defaultHakyllWriterOptions,
loadAllSnapshots,
pandocCompilerWithTransform,
pandocCompilerWithTransformM,
recentFirst,
unsafeCompiler )
import Prelude ( (++), ($), Maybe(Just), IO, String, (.), (=<<) )
import Text.Pandoc.Filter.IncludeCode ( includeCode )
import Site.Contexts ( feedCtx )
import Site.Feeds ( FeedRenderer, feedConfiguration )
import Text.Pandoc
( Block(Header), Pandoc, Inline(Str, Link), Format(Format) )
import Text.Pandoc.Walk ( Walkable(walk, walkM) )
module Site.Compilers
( customPandocCompiler
, anchorsPandocCompiler
, includeCodePandocCompiler
, feedCompiler
) where
import Hakyll
import Prelude
import Text.Pandoc.Filter.IncludeCode
import Site.Contexts
import Site.Feeds
import Text.Pandoc
import Text.Pandoc.Walk
Want to use -ddump-minimal-imports as the final version but when writing easily go back to how it is in developing.hs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment