feat(xan): Use haskell-language-server

Use haskell-language-server instead of haskell-ide-engine for Xanthous.

Change-Id: I7ef1433d5cd561e659fc06b3f373a6f29dfa5690
Reviewed-on: https://cl.tvl.fyi/c/depot/+/904
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Reviewed-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2020-07-03 13:46:29 -04:00 committed by glittershark
parent 64ce8522fe
commit 6480a81c16
6 changed files with 17 additions and 37 deletions

View file

@ -1,16 +0,0 @@
{ pkgs ? (import ../../../. {}).third_party }:
let
all-hies = (fetchTarball {
url = "https://github.com/infinisil/all-hies/archive/eff5d9a5e1a84150014095494331cf63e59923af.tar.gz";
sha256 = "19bws9fyjhgiikig86cri05fxz1wrz60n69zrigq5wzbyn4hwv9h";
});
sources = import "${all-hies}/sources.nix";
build = import "${all-hies}/build.nix";
in (build {
glibcName = pkgs.glibc.name;
inherit sources;
ghcVersion = "8.8.3";
}).combined

View file

@ -1,6 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1
exec nix-shell --run "$(nix-build -o dist/bin/hie hie.nix)/bin/hie $*"

View file

@ -0,0 +1,10 @@
cradle:
cabal:
- path: './src'
component: 'lib:xanthous'
- path: './test'
component: 'test:test'
- path: './src'
component: 'exe:xanthous'
- path: './bench'
component: 'bench:benchmark'

View file

@ -31,6 +31,7 @@ dependencies:
- comonad-extras
- constraints
- containers
- criterion
- data-default
- deepseq
- directory

View file

@ -5,13 +5,11 @@
})).shellFor {
packages = p: [p.xanthous];
withHoogle = true;
doBenchmark = true;
buildInputs = with pkgs.haskellPackages; [
cabal-install
ghc-prof-flamegraph
hp2pretty
];
nativeBuildInputs = [
(import ./hie.nix { inherit pkgs; })
pkgs.haskell-language-server.ghc883
];
}