I have the following build system
module Main where
import Development.Shake
main :: IO ()
main = shakeArgs shakeOptions $ do
"a" %> \out -> do
need ["a.in"]
cmd_ "sleep" "10"
cmd "touch" [out]
which I build with stack build
and run with stack exec myShake -- --progress a
.
If I do a clean build and than touch a.in
and run again, shake shows me very wrong progress predictions. Sometimes it predicts 1000 minutes and more.
(As I get a progress prediction in the title bar of my terminal every 5 seconds, if I understood this correctly, I only talk about the first progress prediction here, as this is the only one I get with this build system example.)
I use lts-9.6 with stack and shake version 0.16 (via git + an entry in packages in stack.yaml).