diff --git a/.circleci/config.yml b/.circleci/config.yml
index e54c3762fce460daf273f25f8bf6fd3e2e5c570d..2df8fb1e0b17a9107909aee54200ab11f8c40c71 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -162,7 +162,14 @@ 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.
+            #
+            PATH="stack path \
+              --haddock \
+              --haddock-internal \
+              --no-haddock-deps"
+            mv $(nix-shell shell.nix --run "$PATH")/PaymentServer-* /tmp/PaymentServer-docs
 
       - store_artifacts:
           # This contains the html haddock output for the project.