summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core
diff options
context:
space:
mode:
Diffstat (limited to 'src/Hakyll/Core')
-rw-r--r--src/Hakyll/Core/Rules.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Hakyll/Core/Rules.hs b/src/Hakyll/Core/Rules.hs
index 1c3f18d..8231422 100644
--- a/src/Hakyll/Core/Rules.hs
+++ b/src/Hakyll/Core/Rules.hs
@@ -126,9 +126,7 @@ version v rules = do
--------------------------------------------------------------------------------
-- | Add a compilation rule to the rules.
--
--- This instructs all resources to be compiled using the given compiler. When
--- no resources match the current selection, nothing will happen. In this case,
--- you might want to have a look at 'create'.
+-- This instructs all resources to be compiled using the given compiler.
compile :: (Binary a, Typeable a, Writable a) => Compiler (Item a) -> Rules ()
compile compiler = Rules $ modify $ \s ->
s {rulesCompiler = Just (fmap SomeItem compiler)}