@@ -294,6 +294,10 @@ singleBuild pb@PerformBuild {..} SingleBuild {..} =
294294
295295 -- Even if the tests later fail, we can allow other libraries to build
296296 -- on top of our successful results
297+ --
298+ -- FIXME do we need to wait to do this until after Haddocks build?
299+ -- otherwise, we could have a race condition and try to build a
300+ -- dependency's haddocks before this finishes
297301 atomically $ putTMVar (piResult sbPackageInfo) True
298302
299303 when (pcHaddocks /= Don'tBuild && not (null $ sdModules $ ppDesc $ piPlan sbPackageInfo)) $ do