on master help sign in
Fix issue in Compiler Alternative instance
6c8fda2Jasper Van der Jeugt
hakyll.cabal+1−1
@@ -1,5 +1,5 @@
1Name: hakyll
1Name: hakyll
2−Version: 4.2.1.2
2+Version: 4.2.2.0
3
3
4Synopsis: A static website compiler library
4Synopsis: A static website compiler library
5Description:
5Description:
src/Hakyll/Core/Compiler/Internal.hs+3−2
@@ -183,8 +183,9 @@ compilerCatch :: Compiler a -> (String -> Compiler a) -> Compiler a
183compilerCatch (Compiler x) f = Compiler $ \r -> do
183compilerCatch (Compiler x) f = Compiler $ \r -> do
184 res <- x r
184 res <- x r
185 case res of
185 case res of
186+ CompilerDone res' w -> return (CompilerDone res' w)
186− CompilerError e -> unCompiler (f e) r
187+ CompilerError e -> unCompiler (f e) r
187− _ -> return res
188+ CompilerRequire i c -> return (CompilerRequire i (compilerCatch c f))
188{-# INLINE compilerCatch #-}
189{-# INLINE compilerCatch #-}
189
190
190
191
web/releases.markdown+4
@@ -4,6 +4,10 @@ title: Releases
4
4
5# Releases
5# Releases
6
6
7+## Hakyll 4.2.2.0
8+
9+- Fix issue with `Alternative` instance of `Compiler`
10+
7## Hakyll 4.2.1.1
11## Hakyll 4.2.1.1
8
12
9*March 9, 2013*
13*March 9, 2013*