Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 7e37eb0

Browse files
committed
Remove ide-backend
There are two reasons for this: 1. It causes our travis builds to run out of memory. 2. ide-backend doesn’t really provide anything which we don’t already have and it doesn’t fit in very well (e.g. it can’t reuse ghc sessions).
1 parent 6078c36 commit 7e37eb0

10 files changed

+22
-376
lines changed

.travis.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,18 @@ before_install:
2121
install:
2222
- "./travis_long stack +RTS -N2 -RTS setup"
2323
- "./travis_long stack build --only-snapshot"
24-
- "./travis_long stack install ide-backend-server"
2524
script:
26-
- "STACK_YAML=stack_test.yaml ./travis_long stack +RTS -N1 -RTS build --test --no-run-tests"
27-
- "./travis_long stack +RTS -N1 -RTS build --test"
25+
- >
26+
./travis_long stack +RTS -N1 -RTS build --test
27+
--flag hie-apply-refact:pedantic
28+
--flag hie-base:pedantic
29+
--flag hie-docs-generator:pedantic
30+
--flag hie-eg-plugin-async:pedantic
31+
--flag hie-example-plugin2:pedantic
32+
--flag hie-ghc-mod:pedantic
33+
--flag hie-ghc-tree:pedantic
34+
--flag hie-hare:pedantic
35+
--flag hie-plugin-api:pedantic
2836
- "./travis_long stack exec emacs24 -- -q --batch -L elisp -l elisp/tests/hie-tests.el
2937
-f ert-run-tests-batch-and-exit"
3038
- "./travis_long ./deploy-docs.sh"

Makefile

+11-6
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,27 @@ ifeq (,$(shell which $(emacs) 2> /dev/null))
55
endif
66

77
.PHONY: test
8-
test: build-haskell test-haskell test-emacs
8+
test: test-haskell test-emacs
99

1010
.PHONY: test-emacs
1111
test-emacs:
1212
stack exec $(emacs) -- -q --batch -L elisp -l elisp/tests/hie-tests.el -f ert-run-tests-batch-and-exit
1313

14-
.PHONY: build-haskell
15-
build-haskell:
16-
@STACK_YAML=stack_test.yaml stack build --test --no-run-tests
17-
1814
.PHONY: test-haskell
1915
test-haskell:
2016
# stack build --test --pedantic
2117
# stack complains about deprecations in ghc-mod as an extra dep
2218
# build with -Werror enabled but run the tests without it because ide-backend picks it up
23-
stack build --test
19+
stack build --test --flag haskell-ide-engine:pedantic \
20+
--flag hie-apply-refact:pedantic \
21+
--flag hie-base:pedantic \
22+
--flag hie-docs-generator:pedantic \
23+
--flag hie-eg-plugin-async:pedantic \
24+
--flag hie-example-plugin2:pedantic \
25+
--flag hie-ghc-mod:pedantic \
26+
--flag hie-ghc-tree:pedantic \
27+
--flag hie-hare:pedantic \
28+
--flag hie-plugin-api:pedantic
2429

2530
.PHONY: ghci-test
2631
ghci-test:

app/MainHie.hs

-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ import Haskell.Ide.ExamplePluginAsync
5151
import Haskell.Ide.GhcModPlugin
5252
import Haskell.Ide.GhcTreePlugin
5353
import Haskell.Ide.HaRePlugin
54-
import Haskell.Ide.IdeBackend
5554

5655
-- ---------------------------------------------------------------------
5756

@@ -65,7 +64,6 @@ taggedPlugins =
6564
:& Plugin (Proxy :: Proxy "ghctree") ghcTreeDescriptor
6665
:& Plugin (Proxy :: Proxy "hare") hareDescriptor
6766
:& Plugin (Proxy :: Proxy "base") baseDescriptor
68-
:& Plugin (Proxy :: Proxy "ide-backend") idebackendDescriptor
6967
:& RNil
7068

7169
recProxy :: Rec f t -> Proxy t

haskell-ide-engine.cabal

-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ executable hie
8888
, hie-ghc-mod
8989
, hie-ghc-tree
9090
, hie-hare
91-
, hie-ide-backend
9291
, hie-plugin-api
9392
, monad-logger
9493
, optparse-applicative
@@ -114,7 +113,6 @@ test-suite haskell-ide-test
114113
GhcModPluginSpec
115114
GhcTreePluginSpec
116115
HaRePluginSpec
117-
IdeBackendPluginSpec
118116
JsonStdioSpec
119117
JsonSpec
120118
UtilsSpec
@@ -130,7 +128,6 @@ test-suite haskell-ide-test
130128
, hie-apply-refact
131129
, hie-base
132130
, hie-eg-plugin-async
133-
, hie-ide-backend
134131
, hie-ghc-mod
135132
, hie-ghc-tree
136133
, hie-hare

hie-ide-backend/Haskell/Ide/IdeBackend.hs

-186
This file was deleted.

hie-ide-backend/Setup.hs

-2
This file was deleted.

hie-ide-backend/hie-ide-backend.cabal

-37
This file was deleted.

stack.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ packages:
1010
- hie-ghc-tree
1111
- hie-hare
1212
- hie-docs-generator
13-
- hie-ide-backend
1413
- location:
1514
git: https://github.com/mpickering/apply-refact.git
1615
commit: 402458652844c1a0f42b15123e0ceff761919415

stack_test.yaml

-50
This file was deleted.

0 commit comments

Comments
 (0)