summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2013-01-07 15:57:23 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2013-01-07 15:57:23 +0100
commitb83b90b2667dbfd2cd208cd4ca41d893513ff800 (patch)
tree39d8973f3fb44f6b49c8c452bec337654a8b19e2
parentbbc2631c76db01e85ac5c4e75b1babb6c5b05697 (diff)
downloadhakyll-b83b90b2667dbfd2cd208cd4ca41d893513ff800.tar.gz
Nicer fail for Compiler
-rw-r--r--src/Hakyll/Core/Compiler/Internal.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Hakyll/Core/Compiler/Internal.hs b/src/Hakyll/Core/Compiler/Internal.hs
index be49e9f..267fe26 100644
--- a/src/Hakyll/Core/Compiler/Internal.hs
+++ b/src/Hakyll/Core/Compiler/Internal.hs
@@ -126,6 +126,9 @@ instance Monad Compiler where
CompilerRequire i c' -> return $ CompilerRequire i $ c' >>= f
{-# INLINE (>>=) #-}
+ fail = compilerThrow
+ {-# INLINE fail #-}
+
--------------------------------------------------------------------------------
instance Applicative Compiler where