Fix issue in Compiler Alternative instance
commit6c8fda2c00bd14bf75c9fa1b98b09e283711a706
authorJasper Van der Jeugt <m@jaspervdj.be>
dateSun 24 Mar 2013, 19:21 (14 years ago)
parentcce87f0
hakyll.cabal+1−1
@@ -1,5 +1,5 @@
11Name: hakyll
2−Version: 4.2.1.2
2+Version: 4.2.2.0
33
44Synopsis: A static website compiler library
55Description:
src/Hakyll/Core/Compiler/Internal.hs+3−2
@@ -183,8 +183,9 @@ compilerCatch :: Compiler a -> (String -> Compiler a) -> Compiler a
183183compilerCatch (Compiler x) f = Compiler $ \r -> do
184184 res <- x r
185185 case res of
186− CompilerError e -> unCompiler (f e) r
187− _ -> return res
186+ CompilerDone res' w -> return (CompilerDone res' w)
187+ CompilerError e -> unCompiler (f e) r
188+ CompilerRequire i c -> return (CompilerRequire i (compilerCatch c f))
188189{-# INLINE compilerCatch #-}
189190
190191
web/releases.markdown+4
@@ -4,6 +4,10 @@ title: Releases
44
55# Releases
66
7+## Hakyll 4.2.2.0
8+
9+- Fix issue with `Alternative` instance of `Compiler`
10+
711## Hakyll 4.2.1.1
812
913*March 9, 2013*