@@ -37,8 +37,8 @@ import Hakyll.Core.Writable
37-- * The compiler will produce more compilers. These new compilers need to be
37-- * The compiler will produce more compilers. These new compilers need to be
38-- added to the runtime if possible, since other items might depend upon them.
38-- added to the runtime if possible, since other items might depend upon them.
40−data CompileRule = ItemRule CompiledItem
40+data CompileRule = CompileRule CompiledItem
41− | AddCompilersRule [(Identifier, Compiler () CompiledItem)]
41+ | MetaCompileRule [(Identifier, Compiler () CompiledItem)]
43-- | A collection of rules for the compilation process
43-- | A collection of rules for the compilation process
@@ -81,7 +81,7 @@ tellCompilers :: (Binary a, Typeable a, Writable a)
81tellCompilers compilers = RulesM $ tell $ RuleSet mempty $
81tellCompilers compilers = RulesM $ tell $ RuleSet mempty $
82 map (second boxCompiler) compilers
82 map (second boxCompiler) compilers
84− boxCompiler = (>>> arr compiledItem >>> arr ItemRule)
84+ boxCompiler = (>>> arr compiledItem >>> arr CompileRule)
86-- | Add a compilation rule
86-- | Add a compilation rule
@@ -119,4 +119,4 @@ addCompilers :: (Binary a, Typeable a, Writable a)
119addCompilers identifier compiler = RulesM $ tell $ RuleSet mempty $
119addCompilers identifier compiler = RulesM $ tell $ RuleSet mempty $
120 [(identifier, compiler >>^ makeRule)]
120 [(identifier, compiler >>^ makeRule)]
122− makeRule = AddCompilersRule . map (second (>>^ compiledItem))
122+ makeRule = MetaCompileRule . map (second (>>^ compiledItem))