summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Rules
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-11-10 19:56:45 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2012-11-10 19:56:45 +0100
commit9eda3425a3153e0f226cc0e32b38c82cc7c806ef (patch)
treeef4feb4c2169af68d140880dfb6cd9a5b61d8e90 /src/Hakyll/Core/Rules
parent141e761ce11d4d4ae9e9b86201249dbd549e2924 (diff)
downloadhakyll-9eda3425a3153e0f226cc0e32b38c82cc7c806ef.tar.gz
Remove metacompilation
Diffstat (limited to 'src/Hakyll/Core/Rules')
-rw-r--r--src/Hakyll/Core/Rules/Internal.hs16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/Hakyll/Core/Rules/Internal.hs b/src/Hakyll/Core/Rules/Internal.hs
index 245d935..dc2badd 100644
--- a/src/Hakyll/Core/Rules/Internal.hs
+++ b/src/Hakyll/Core/Rules/Internal.hs
@@ -3,8 +3,7 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE Rank2Types #-}
module Hakyll.Core.Rules.Internal
- ( CompileRule (..)
- , RuleSet (..)
+ ( RuleSet (..)
, RuleState (..)
, RuleEnvironment (..)
, RulesM (..)
@@ -31,23 +30,12 @@ import Hakyll.Core.Routes
--------------------------------------------------------------------------------
--- | Output of a compiler rule
---
--- * The compiler will produce a simple item. This is the most common case.
---
--- * The compiler will produce more compilers. These new compilers need to be
--- added to the runtime if possible, since other items might depend upon them.
-data CompileRule = CompileRule CompiledItem
- | MetaCompileRule [(Identifier (), Compiler () CompileRule)]
-
-
---------------------------------------------------------------------------------
-- | A collection of rules for the compilation process
data RuleSet = RuleSet
{ -- | Routes used in the compilation structure
rulesRoutes :: Routes
, -- | Compilation rules
- rulesCompilers :: [(Identifier (), Compiler () CompileRule)]
+ rulesCompilers :: [(Identifier (), Compiler () CompiledItem)]
, -- | A set of the actually used files
rulesResources :: Set (Identifier ())
}