diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-11-29 13:47:47 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-11-29 13:47:47 +0100 |
commit | 0e925e71e18d61f9b4eee715378946f47ad0e819 (patch) | |
tree | a49e167b5f2d85f2bc3220304f4dd92ac24d0a4e /src/Hakyll | |
parent | a8182c9fc9379dff1e0dae1bc9a838a3c97c56c5 (diff) | |
download | hakyll-0e925e71e18d61f9b4eee715378946f47ad0e819.tar.gz |
Better error message for Context mempty
Diffstat (limited to 'src/Hakyll')
-rw-r--r-- | src/Hakyll/Web/Template/Context.hs | 2 |
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 |