Skip to content

Commit

Permalink
Upgrade to hie-bios 0.9.0 (#2738)
Browse files Browse the repository at this point in the history
* Try out new hie-bios

* Update to hie-bios 0.9.0 hackage release

* Use caret operator for hie-bios dependency

Co-authored-by: Julian Ospald <hasufell@posteo.de>

* Update nix dependency

* Update hie-bios dependency in flake.nix

Co-authored-by: Potato Hatsue <berberman@yandex.com>

Co-authored-by: Julian Ospald <hasufell@posteo.de>
Co-authored-by: Potato Hatsue <berberman@yandex.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
4 people committed Feb 27, 2022
1 parent 905e2ef commit 0c018ac
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cabal-ghc90.project
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package *

write-ghc-environment-files: never

index-state: 2022-01-24T21:03:03Z
index-state: 2022-02-25T21:47:10Z

constraints:
-- These plugins don't work on GHC9 yet
Expand Down
2 changes: 1 addition & 1 deletion cabal-ghc921.project
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ package *

write-ghc-environment-files: never

index-state: 2022-01-24T21:03:03Z
index-state: 2022-02-25T21:47:10Z

constraints:
-- These plugins don't build/work on GHC92 yet
Expand Down
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package *

write-ghc-environment-files: never

index-state: 2022-01-24T21:03:03Z
index-state: 2022-02-25T21:47:10Z

constraints:
hyphenation +embed
Expand Down
10 changes: 7 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
url = "https://hackage.haskell.org/package/implicit-hie-cradle-0.3.0.5/implicit-hie-cradle-0.3.0.5.tar.gz";
flake = false;
};
hie-bios = {
url = "https://hackage.haskell.org/package/hie-bios-0.9.0/hie-bios-0.9.0.tar.gz";
flake = false;
};
};
outputs =
inputs@{ self, nixpkgs, flake-compat, flake-utils, pre-commit-hooks, gitignore, ... }:
Expand Down Expand Up @@ -108,8 +112,8 @@
with haskell.lib; {
# Patches don't apply
github = overrideCabal hsuper.github (drv: { patches = []; });
# GHCIDE requires hie-bios >=0.8 && <0.9.0
hie-bios = hself.hie-bios_0_8_0;
# GHCIDE requires hie-bios ^>=0.9.0
hie-bios = hself.callCabal2nix "hie-bios" inputs.hie-bios {};
# We need an older version
hiedb = hself.hiedb_0_4_1_0;

Expand Down Expand Up @@ -364,7 +368,7 @@
# distributed using nix.
all-haskell-language-server = linkFarmFromDrvs "all-haskell-language-server" (lib.unique (builtins.attrValues allPackages));

# Same for all shells
# Same for all shells
# We try to build as much as possible, but not much shells are
# working (especially on darwing), so this list is limited.
all-nix-dev-shells = linkFarmFromDrvs "all-dev-shells" (builtins.map (shell: shell.inputDerivation) (lib.unique [nixDevShells.haskell-language-server-dev-nix]));
Expand Down
2 changes: 1 addition & 1 deletion ghcide/ghcide.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ library
ghc-check >=0.5.0.4,
ghc-paths,
cryptohash-sha1 >=0.11.100 && <0.12,
hie-bios >= 0.8 && < 0.9.0,
hie-bios ^>= 0.9.0,
implicit-hie-cradle ^>= 0.3.0.5 || ^>= 0.5,
base16-bytestring >=0.1.1 && <1.1
if os(windows)
Expand Down
2 changes: 1 addition & 1 deletion stack-8.10.6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extra-deps:
- extra-1.7.10
- floskell-0.10.5@sha256:77f0bc1569573d9666b10975a5357fef631d32266c071733739393ccae521dab,3803
- heapsize-0.3.0.1@sha256:0b69aa97a46d819b700ac7b145f3b5493c3565cf2c5b8298682238d405d0326e,1417
- hie-bios-0.8.0
- hie-bios-0.9.0
- hiedb-0.4.1.0
- hlint-3.2.8
- implicit-hie-0.1.2.6@sha256:f50a908979a574a881f753c0f9a5224f023f438b30fdefc5b7fa01803b07a280,2998
Expand Down
2 changes: 1 addition & 1 deletion stack-8.10.7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extra-deps:
- extra-1.7.10
- floskell-0.10.5@sha256:77f0bc1569573d9666b10975a5357fef631d32266c071733739393ccae521dab,3803
- heapsize-0.3.0.1@sha256:0b69aa97a46d819b700ac7b145f3b5493c3565cf2c5b8298682238d405d0326e,1417
- hie-bios-0.8.0
- hie-bios-0.9.0
- hiedb-0.4.1.0
- hlint-3.2.8
- implicit-hie-0.1.2.6@sha256:f50a908979a574a881f753c0f9a5224f023f438b30fdefc5b7fa01803b07a280,2998
Expand Down
5 changes: 2 additions & 3 deletions stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ extra-deps:
- haddock-library-1.10.0
- hashable-1.3.0.0
- heapsize-0.3.0
- hie-bios-0.8.0
- hie-bios-0.9.0
- hlint-3.2.8
- HsYAML-0.2.1.0@rev:1
- HsYAML-aeson-0.2.0.0@rev:2
Expand All @@ -79,7 +79,7 @@ extra-deps:
- optparse-applicative-0.15.1.0
- ormolu-0.1.4.1
- parser-combinators-1.2.1
- prettyprinter-1.7.1
- prettyprinter-1.7.1
- primitive-0.7.1.0
- refinery-0.4.0.0
- regex-base-0.94.0.0
Expand Down Expand Up @@ -115,7 +115,6 @@ extra-deps:
- stm-hamt-1.2.0.6@sha256:fba86ccb4b45c5706c19b0e1315ba63dcac3b5d71de945ec001ba921fae80061,3972
- primitive-extras-0.10.1
- primitive-unlifted-0.1.3.1

configure-options:
ghcide:
- --disable-library-for-ghci
Expand Down
2 changes: 1 addition & 1 deletion stack-8.8.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ extra-deps:
- ghc-trace-events-0.1.2.1
- haskell-src-exts-1.21.1
- heapsize-0.3.0
- hie-bios-0.8.0
- hie-bios-0.9.0
- hlint-3.2.8
- HsYAML-aeson-0.2.0.0@rev:2
- hoogle-5.0.17.11
Expand Down
1 change: 1 addition & 0 deletions stack-9.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ extra-deps:
- floskell-0.10.6
- heapsize-0.3.0.1
- hiedb-0.4.1.0
- hie-bios-0.9.0
- implicit-hie-0.1.2.6
- implicit-hie-cradle-0.3.0.5
- monad-dijkstra-0.1.1.3
Expand Down
1 change: 1 addition & 0 deletions stack-9.0.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ extra-deps:
- floskell-0.10.6
- heapsize-0.3.0.1
- hiedb-0.4.1.0
- hie-bios-0.9.0
- implicit-hie-0.1.2.6
- implicit-hie-cradle-0.3.0.5
- monad-dijkstra-0.1.1.3
Expand Down
1 change: 1 addition & 0 deletions stack-9.2.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ extra-deps:
- ghc-lib-parser-ex-9.2.0.1
- heapsize-0.3.0.1
- hiedb-0.4.1.0
- hie-bios-0.9.0
- hspec-2.7.10 # for hls-test-utils
- hspec-core-2.7.10 # for hls-test-utils
- implicit-hie-0.1.2.6
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ extra-deps:
- extra-1.7.10
- floskell-0.10.5@sha256:77f0bc1569573d9666b10975a5357fef631d32266c071733739393ccae521dab,3803
- heapsize-0.3.0.1@sha256:0b69aa97a46d819b700ac7b145f3b5493c3565cf2c5b8298682238d405d0326e,1417
- hie-bios-0.8.0
- hiedb-0.4.1.0
- hie-bios-0.9.0
- hlint-3.2.8
- implicit-hie-0.1.2.6@sha256:f50a908979a574a881f753c0f9a5224f023f438b30fdefc5b7fa01803b07a280,2998
- implicit-hie-cradle-0.3.0.5@sha256:5f5e575f549b2a9db664be7650b5c3c9226e313bddc46c79e2e83eb349f8e692,2610
Expand Down

0 comments on commit 0c018ac

Please sign in to comment.