Skip to content

Instantly share code, notes, and snippets.

@adetokunbo
Created January 13, 2022 02:09
Show Gist options
  • Save adetokunbo/e00f2c0c6f6e07be7a26069c7cfe4578 to your computer and use it in GitHub Desktop.
Save adetokunbo/e00f2c0c6f6e07be7a26069c7cfe4578 to your computer and use it in GitHub Desktop.
haskell.nix: wai-middleware-delegate: cabal build fails after successful nix-shell when upgrading to text-2.0
$ nix-shell
building '/nix/store/2p075yxfnykj1wgcf7cl83n3ygnnlds1-git-ls-files.drv'...
trace: No index state specified for haskell-project, using the latest index state that we know about (2022-01-06T00:00:00Z)!
trace: To make project.plan-nix for hoogle a fixed-output derivation but not materialized, set `plan-sha256` to the output of the 'calculateMaterializedSha' script in 'passthru'.
trace: To materialize project.plan-nix for hoogle entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.
trace: No index state specified for cabal-install, using the latest index state that we know about (2022-01-06T00:00:00Z)!
trace: No index state specified for ghcid, using the latest index state that we know about (2022-01-06T00:00:00Z)!
trace: No index state specified for haskell-language-server, using the latest index state that we know about (2022-01-06T00:00:00Z)!
trace: No index state specified for hlint, using the latest index state that we know about (2022-01-06T00:00:00Z)!
[nix-shell]$ cabal new-build
Warning: No remote package servers have been specified. Usually you would have
one specified in the config file.
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: wai-middleware-delegate-0.1.3.0 (user goal)
[__1] next goal: wai (dependency of wai-middleware-delegate)
[__1] rejecting: wai-3.2.3/installed-IPy9Gpa463xGzAREy5hulI (conflict:
wai-middleware-delegate => text^>=2.0, wai => text==1.2.4.1/installed-1.2.4.1)
[__1] fail (backjumping, conflict set: wai, wai-middleware-delegate)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: wai-middleware-delegate, wai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment