u/Fluid-Bench-1908

Below are the haskell toolchain installed in my local -

https://preview.redd.it/fxwoi1gpi0zg1.png?width=1166&format=png&auto=webp&s=9b231e722804ca0858388f1cba26649ec456dd1e

When I try to install haskell-debugger, I get below error -

% stack install haskell-debugger

Error: [S-4804]
       Stack failed to construct a build plan.

       While constructing the build plan, Stack encountered the following errors. The 'Stack configuration' refers to the set of package versions specified by the snapshot (after any dropped packages,
       or pruned GHC boot packages; if a boot package is replaced, Stack prunes all other such packages that depend on it) and any extra-deps:

       In the dependencies for haskell-debugger-0.13.1.0:
         * aeson must match >=2.2.3 && <2.3, but no version is in the Stack configuration (latest matching version is 2.2.4.1).
         * async must match >=2.2.6 && <2.3, but no version is in the Stack configuration (latest matching version is 2.2.6).
         * attoparsec must match >=0.13 && <0.15, but no version is in the Stack configuration (latest matching version is 0.14.4).
         * base16-bytestring must match >=1.0.2.0 && <1.1, but no version is in the Stack configuration (latest matching version is 1.0.2.0).
         * co-log-core must match >=0.3.2.5 && <0.4, but no version is in the Stack configuration (latest matching version is 0.3.2.6).
         * cryptohash-sha1 must match >=0.11.101.0 && <0.12, but no version is in the Stack configuration (latest matching version is 0.11.101.0).
         * dap must match >=0.5 && <0.6, but no version is in the Stack configuration (latest matching version is 0.5.0.0).
         * file-embed must match >=0.0.16 && <0.1, but no version is in the Stack configuration (latest matching version is 0.0.16.0).
         * ghc-stack-annotations must match >=0.1 && <0.2, but no version is in the Stack configuration (latest matching version is 0.1.0.0).
         * haskell-debugger-view must match >=0.2 && <1.0, but no version is in the Stack configuration (latest matching version is 0.2.1.0).
         * hie-bios must match >=0.15 && <0.20, but no version is in the Stack configuration (latest matching version is 0.19.0).
         * implicit-hie must match ^>=0.1.4.0, but no version is in the Stack configuration (latest matching version is 0.1.4.0).
         * network must match >=3.2.8, but no version is in the Stack configuration (latest matching version is 3.2.8.0).
         * network-run must match >=0.4.4, but no version is in the Stack configuration (latest matching version is 0.5.0).
         * optparse-applicative must match >=0.18 && <0.20, but no version is in the Stack configuration (latest matching version is 0.19.0.0).
         * prettyprinter must match ^>=1.7.0, but no version is in the Stack configuration (latest matching version is 1.7.2).
         * retry must match >=0.9 && <1, but no version is in the Stack configuration (latest matching version is 0.9.3.1).
         * unordered-containers must match >=0.2.19 && <0.3, but no version is in the Stack configuration (latest matching version is 0.2.21).
         * uuid must match >=1.3 && <1.4, but no version is in the Stack configuration (latest matching version is 1.3.16.1).
       The above is/are needed since haskell-debugger is a build target.

       Some different approaches to resolving some or all of this:

         * Recommended action: try adding the following to your extra-deps in ~/.stack/global-project/stack.yaml (project-level configuration):

           - aeson-2.2.4.1@sha256:afaffd5afdb4c6acbd875265ae8f3850eb932dbe1f0560294bb04b9bace79d08,6320
           - async-2.2.6@sha256:45d5587d8a348a7e2b3f04de963fe633db49b49cde10ca1e6f834bef3baecee9,3870
           - attoparsec-0.14.4@sha256:35129d0ab1741f000f1a7d2fc839544919ee6fbb8f2d6e7f0a629c41f91035f3,5914
           - base16-bytestring-1.0.2.0@sha256:a694e88f9ec9fc79f0b03f233d3fea592b68f70a34aac2ddb5bcaecb6562e2fd,2630
           - co-log-core-0.3.2.6@sha256:ab37b9d716730eb9578ba1300f847ffedabfaad89f17fbf85c06d7eb17718ff7,4122
           - cryptohash-sha1-0.11.101.0@sha256:2bdf29dbd896bca86bf198c882fa8df1cb31843b71f2907e059b7c10bce0adb3,3085
           - dap-0.5.0.0@sha256:09f487806436461b0af84c15d82e4b74d361a4238480d8e80e8ade358a50f08e,2324
           - file-embed-0.0.16.0@sha256:2e8983240c1faae020b4acef6d30f0281f5ec87c2f38736dc1dc5456355e22a5,1426
           - ghc-stack-annotations-0.1.0.0@sha256:56bdded7dc6a72ea338b96fdb9da1806c583bfdf3286aa9d092bf072d36bac21,1643
           - haskell-debugger-view-0.2.1.0@sha256:a6cad0c90bcc03be18b5435fc9222a9c97b3dc53b2b1c66c068ee5bfaa9af57e,1973
           - hie-bios-0.19.0@sha256:051e8f969db94cc8465345c60c5d6cc1bc46a976a229ac98cae9c19e91eec76c,13880
           - implicit-hie-0.1.4.0@sha256:42a8bdc36713d98711c59b62fac238d81f6ce3ef7912752f38d456182260a5a3,3122
           - network-3.2.8.0@sha256:c6f02f2626d1d83b3e3521fc2a9832c366e31dd391cb8478bd2d83528459e786,5305
           - network-run-0.5.0@sha256:7674f855f3df6b4793618d1807d9a537018d20e38fa6fbafb310d7b18f69e02a,826
           - optparse-applicative-0.19.0.0@sha256:0b47b3ff7eb4a855b5f7d401690365fc62a32057374927ce0d478b620996222d,5813
           - prettyprinter-1.7.2@sha256:e3a802ea939d465b2e37b9fa09d8e5bb88b5775d6d62dd2ec6ca32b63416656d,6618
           - retry-0.9.3.1@sha256:1a61625dc1c3dd6677ffde1c8142004026dfb08085d0d0af5848088d56ec6110,2426
           - unordered-containers-0.2.21@sha256:c5de1fb3377ed3c5f4cd851a771d1acc5c37d2f6bef0a499295c0e8857da5605,3987
           - uuid-1.3.16.1@sha256:b54250e72f324630753623edf3168e3c088decfbc5f10b3014805eb054391f3d,2516  

Below is the stack.yaml in ~/.stack/global-project/stack.yaml

packages: []
snapshot: ghc-9.14.1

I didn't change anything in ~/.stack/config.yaml

how can I make this work? I tried --allow-newer but it didn't work

reddit.com
u/Fluid-Bench-1908 — 10 days ago