summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-11-29 13:47:47 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2012-11-29 13:47:47 +0100
commit0e925e71e18d61f9b4eee715378946f47ad0e819 (patch)
treea49e167b5f2d85f2bc3220304f4dd92ac24d0a4e /src/Hakyll/Web
parenta8182c9fc9379dff1e0dae1bc9a838a3c97c56c5 (diff)
downloadhakyll-0e925e71e18d61f9b4eee715378946f47ad0e819.tar.gz
Better error message for Context mempty
Diffstat (limited to 'src/Hakyll/Web')
-rw-r--r--src/Hakyll/Web/Template/Context.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Template/Context.hs b/src/Hakyll/Web/Template/Context.hs
index 67c4070..084a42e 100644
--- a/src/Hakyll/Web/Template/Context.hs
+++ b/src/Hakyll/Web/Template/Context.hs
@@ -51,7 +51,7 @@ newtype Context a = Context
--------------------------------------------------------------------------------
instance Monoid (Context a) where
- mempty = Context $ \_ _ -> empty
+ mempty = missingField
mappend (Context f) (Context g) = Context $ \k i -> f k i <|> g k i