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