diff --git a/.circleci/config.yml b/.circleci/config.yml
index 69c3e83a22261a7dd160490ae46ec6255c97ebc2..19647282b4687c9b5fddbcfce8c9194fa96b2e89 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -110,7 +110,6 @@ jobs:
             BUILD="stack build \
             --no-terminal \
             --only-dependencies \
-            --fast \
             --jobs 1 \
             --interleaved-output"
             nix-shell shell.nix --run "$BUILD"
@@ -140,17 +139,11 @@ jobs:
             # --no-terminal avoids having fancy progress reports written to
             # stdout.
             #
-            # --fast turns off compiler optimizations which probably doesn't
-            # make a lot of difference in our code but it can speed up build
-            # times for our dependencies (as well as reduce compiler memory
-            # usage which may be important at least for stripe-core).
-            #
             # --haddock builds the Haskell API documentation.
             # --haddock-internal builds docs even for unexposed modules.
             # --no-haddock-deps skips building docs for all our dependencies.
             BUILD="stack build \
               --no-terminal \
-              --fast \
               --haddock \
               --haddock-internal \
               --no-haddock-deps"
@@ -169,7 +162,16 @@ jobs:
       - run:
           name: "Prepare Artifacts for Upload"
           command: |
-            mv $(nix-shell shell.nix --run "stack path --local-doc-root")/PaymentServer-* /tmp/PaymentServer-docs
+            # The flags passed to `stack path` need to pretty closely match
+            # those passed to `stack build` or the path comes out wrong.
+            # https://github.com/commercialhaskell/stack/issues/4892
+            GETPATH="stack path \
+              --haddock \
+              --haddock-internal \
+              --no-haddock-deps \
+              --local-doc-root"
+
+            mv $(nix-shell shell.nix --run "$GETPATH")/PaymentServer-* /tmp/PaymentServer-docs
 
       - store_artifacts:
           # This contains the html haddock output for the project.