on master help sign in
Deepseq stderr before closing the handle

Otherwise laziness allows for the handle to be closed withouth receiving the input. This caused that no error messages were printed when `unixFilter`s failed.

commitcf501485b1325c91f9f6735e8d59248755d2a53c authoruu1101 <uu1101@gmail.com> dateFri 14 Jun 2013, 00:32 (13 years ago) parenta591b16
1 file changed+1
src/Hakyll/Core/UnixFilter.hs+1
src/Hakyll/Core/UnixFilter.hs+1
@@ -130,6 +130,7 @@ unixFilterIO writer reader programName args input = do
130130 -- Read from stderr
131131 _ <- forkIO $ do
132132 err <- hGetContents errh
133+ _ <- deepseq err (return err)
133134 hClose errh
134135 writeIORef errRef err
135136 putMVar lock ()