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

Commit 43cf0d1

Browse files
authored
Merge pull request mpickering#78 from alanz/hie-bios-no-hare
Remove HaRe dependency from HIE.
2 parents 16f2580 + 25bcde6 commit 43cf0d1

27 files changed

+346
-805
lines changed

.gitmodules

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
# rm -rf path_to_submodule
1111

1212

13-
[submodule "submodules/HaRe"]
14-
path = submodules/HaRe
15-
url = https://github.com/alanz/HaRe.git
16-
1713
[submodule "submodules/cabal-helper"]
1814
path = submodules/cabal-helper
1915
# url = https://github.com/DanielG/cabal-helper.git

app/MainHie.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Haskell.Ide.Engine.Plugin.Base
2828
import Haskell.Ide.Engine.Plugin.Brittany
2929
import Haskell.Ide.Engine.Plugin.Example2
3030
import Haskell.Ide.Engine.Plugin.Bios
31-
import Haskell.Ide.Engine.Plugin.HaRe
31+
-- import Haskell.Ide.Engine.Plugin.HaRe
3232
import Haskell.Ide.Engine.Plugin.Haddock
3333
import Haskell.Ide.Engine.Plugin.HfaAlign
3434
import Haskell.Ide.Engine.Plugin.Hoogle
@@ -53,7 +53,7 @@ plugins includeExamples = pluginDescToIdePlugins allPlugins
5353
, baseDescriptor "base"
5454
, brittanyDescriptor "brittany"
5555
, haddockDescriptor "haddock"
56-
, hareDescriptor "hare"
56+
-- , hareDescriptor "hare"
5757
, hoogleDescriptor "hoogle"
5858
, hsimportDescriptor "hsimport"
5959
, liquidDescriptor "liquid"

cabal.project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
packages:
22
./
33
./hie-plugin-api/
4-
./hie-bios/
4+
./hie-bios/
55

6-
./submodules/HaRe
6+
-- ./submodules/HaRe
77
./submodules/cabal-helper/
88
./submodules/ghc-mod/ghc-project-types
99

haskell-ide-engine.cabal

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ library
3030
Haskell.Ide.Engine.Plugin.Example2
3131
Haskell.Ide.Engine.Plugin.Floskell
3232
Haskell.Ide.Engine.Plugin.Bios
33-
Haskell.Ide.Engine.Plugin.HaRe
33+
-- Haskell.Ide.Engine.Plugin.HaRe
3434
Haskell.Ide.Engine.Plugin.Haddock
3535
Haskell.Ide.Engine.Plugin.HfaAlign
3636
Haskell.Ide.Engine.Plugin.Hoogle
@@ -41,6 +41,7 @@ library
4141
Haskell.Ide.Engine.Plugin.Pragmas
4242
Haskell.Ide.Engine.Plugin.Generic
4343
Haskell.Ide.Engine.Scheduler
44+
Haskell.Ide.Engine.Support.FromHaRe
4445
Haskell.Ide.Engine.Support.Fuzzy
4546
Haskell.Ide.Engine.Support.HieExtras
4647
Haskell.Ide.Engine.Transport.JsonStdio
@@ -49,7 +50,7 @@ library
4950
other-modules: Paths_haskell_ide_engine
5051
build-depends: Cabal >= 1.22
5152
, Diff
52-
, HaRe
53+
-- , HaRe
5354
, aeson
5455
, apply-refact
5556
, async
@@ -87,6 +88,7 @@ library
8788
, safe
8889
, sorted-list >= 0.2.1.0
8990
, stm
91+
, syb
9092
, tagsoup
9193
, text
9294
, transformers
@@ -181,7 +183,7 @@ test-suite unit-test
181183
DiffSpec
182184
ExtensibleStateSpec
183185
GhcModPluginSpec
184-
HaRePluginSpec
186+
-- HaRePluginSpec
185187
HooglePluginSpec
186188
JsonSpec
187189
LiquidSpec
@@ -273,7 +275,7 @@ test-suite func-test
273275
, FunctionalCodeActionsSpec
274276
, FunctionalLiquidSpec
275277
, FunctionalSpec
276-
, HaReSpec
278+
-- , HaReSpec
277279
, HieBiosSpec
278280
, HighlightSpec
279281
, HoverSpec

src/Haskell/Ide/Engine/LSP/Completions.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import Var
3939
import Packages (listVisibleModuleNames)
4040

4141

42-
import Language.Haskell.Refact.API ( showGhc )
42+
-- import Language.Haskell.Refact.API ( showGhc )
4343

4444
import qualified Language.Haskell.LSP.Types as J
4545
import qualified Language.Haskell.LSP.Types.Capabilities
@@ -58,6 +58,10 @@ import Haskell.Ide.Engine.MonadTypes
5858
import Haskell.Ide.Engine.PluginUtils
5959
import Haskell.Ide.Engine.Context
6060

61+
import Language.Haskell.GHC.ExactPrint.Utils
62+
63+
-- ---------------------------------------------------------------------
64+
6165
data CompItem = CI
6266
{ origName :: Name -- ^ Original name, such as Maybe, //, or find.
6367
, importedFrom :: T.Text -- ^ From where this item is imported from.

src/Haskell/Ide/Engine/Plugin/Generic.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ import GHC.Generics
2121
import Haskell.Ide.Engine.MonadFunctions
2222
import Haskell.Ide.Engine.MonadTypes
2323
import Haskell.Ide.Engine.PluginUtils
24+
import Haskell.Ide.Engine.Support.FromHaRe
2425
import qualified Haskell.Ide.Engine.GhcCompat as C ( GhcPs )
2526
import qualified Haskell.Ide.Engine.Support.HieExtras as Hie
2627
import Haskell.Ide.Engine.ArtifactMap
2728
import qualified Language.Haskell.LSP.Types as LSP
2829
import qualified Language.Haskell.LSP.Types.Lens as LSP
29-
import Language.Haskell.Refact.API (hsNamessRdr)
30+
-- import Language.Haskell.Refact.API (hsNamessRdr)
3031
import HIE.Bios.Ghc.Doc
3132

3233
import GHC

0 commit comments

Comments
 (0)