Rank N compilers (compiler in compilers in...)
This commit is contained in:
parent
f1e726be69
commit
1bf95c0028
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ import Hakyll.Core.Writable
|
|||
-- added to the runtime if possible, since other items might depend upon them.
|
||||
--
|
||||
data CompileRule = CompileRule CompiledItem
|
||||
| MetaCompileRule [(Identifier, Compiler () CompiledItem)]
|
||||
| MetaCompileRule [(Identifier, Compiler () CompileRule)]
|
||||
|
||||
-- | A collection of rules for the compilation process
|
||||
--
|
||||
|
@ -119,4 +119,4 @@ addCompilers :: (Binary a, Typeable a, Writable a)
|
|||
addCompilers identifier compiler = RulesM $ tell $ RuleSet mempty $
|
||||
[(identifier, compiler >>^ makeRule)]
|
||||
where
|
||||
makeRule = MetaCompileRule . map (second (>>^ compiledItem))
|
||||
makeRule = MetaCompileRule . map (second (>>^ CompileRule . compiledItem))
|
||||
|
|
Loading…
Reference in a new issue