summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Rules
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-05-24 10:12:10 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-05-24 10:12:10 +0200
commit41b7f3713889e8c5b4a21a85d8a2fcebf0b59054 (patch)
tree3dd70408dc6a16832a6c3b8e69c9189abb0d6fde /src/Hakyll/Core/Rules
parentf5c018a26d7593618e6fa52361e81e32128b0d2f (diff)
downloadhakyll-41b7f3713889e8c5b4a21a85d8a2fcebf0b59054.tar.gz
Type-safe patterns
Diffstat (limited to 'src/Hakyll/Core/Rules')
-rw-r--r--src/Hakyll/Core/Rules/Internal.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hakyll/Core/Rules/Internal.hs b/src/Hakyll/Core/Rules/Internal.hs
index 83783b5..fe16062 100644
--- a/src/Hakyll/Core/Rules/Internal.hs
+++ b/src/Hakyll/Core/Rules/Internal.hs
@@ -1,6 +1,6 @@
-- | Internal rules module for types which are not exposed to the user
--
-{-# LANGUAGE GeneralizedNewtypeDeriving #-}
+{-# LANGUAGE GeneralizedNewtypeDeriving, Rank2Types #-}
module Hakyll.Core.Rules.Internal
( CompileRule (..)
, RuleSet (..)
@@ -63,7 +63,7 @@ data RuleState = RuleState
--
data RuleEnvironment = RuleEnvironment
{ rulesResourceProvider :: ResourceProvider
- , rulesPattern :: Pattern
+ , rulesPattern :: forall a. Pattern a
, rulesGroup :: Maybe String
}