HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Modulehakyll-4.17.0.0Haskell2010

Hakyll.Core.Compiler

  • 2 types
  • 21 values
  • Packagehakyll-4.17.0.0
  • Exports23
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternal.hs
newtypenewtype Compiler a
#

A monad which lets you compile items and takes care of dependency tracking for you.

Instances7Monad, Functor, MonadFail, Applicative, Alternative, MonadMetadata, …
valuemakeItem :: a -> Compiler (Item a)
#

Create an item from the underlying identifier and a given value.

typetype Snapshot = String
#

Whilst compiling an item, it possible to save multiple snapshots of it, and not just the final result.

valueload :: (Binary a, Typeable a) => Identifier -> Compiler (Item a)
#

Load an item compiled elsewhere. If the required item is not yet compiled, the build system will take care of that automatically.

valuecached :: (Binary a, Typeable a) => String -> Compiler a -> Compiler a
#

Turn on caching for a compilation value to avoid recomputing it on subsequent Hakyll runs. The storage key consists of the underlying identifier of the compiled ressource and the given name.

valuedebugCompiler :: String -> Compiler ()
#

Compiler for debugging purposes. Passes a message to the debug logger that is printed in verbose mode.