Skip to content

Commit 7915fca

Browse files
committed
Don't copy precompiled library if we need haddocks (#1317)
1 parent 77a049d commit 7915fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Stack/Build/Execute.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ singleBuild runInBase ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} in
941941

942942
getPrecompiled cache =
943943
case taskLocation task of
944-
Snap -> do
944+
Snap | not shouldHaddockPackage' -> do
945945
mpc <- readPrecompiledCache taskProvides
946946
(configCacheOpts cache)
947947
(configCacheDeps cache)

0 commit comments

Comments
 (0)