Skip to content

Commit f8f58c9

Browse files
committed
Initial Retrie plugin
Supports RULES, functions and type synonyms Future work: - Handling names properly (when retrie/#10 is fixed) - Suggestions for pattern synonyms (when retrie/#15 is released) - Refactorings: rename, extract, move, etc.. - Automatically add imports when unfolding - Proper support for workspace folders
1 parent e70d7e8 commit f8f58c9

File tree

3 files changed

+537
-0
lines changed

3 files changed

+537
-0
lines changed

exe/Main.hs

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ import Ide.Plugin.GhcIde as GhcIde
6969
import Ide.Plugin.Floskell as Floskell
7070
import Ide.Plugin.Ormolu as Ormolu
7171
import Ide.Plugin.StylishHaskell as StylishHaskell
72+
import Ide.Plugin.Retrie as Retrie
7273
#if AGPL
7374
import Ide.Plugin.Brittany as Brittany
7475
#endif
@@ -105,6 +106,7 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
105106
-- , ghcmodDescriptor "ghcmod"
106107
, Ormolu.descriptor "ormolu"
107108
, StylishHaskell.descriptor "stylish-haskell"
109+
, Retrie.descriptor "retrie"
108110
#if AGPL
109111
, Brittany.descriptor "brittany"
110112
#endif

haskell-language-server.cabal

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ library
4747
Ide.Plugin.GhcIde
4848
Ide.Plugin.Ormolu
4949
Ide.Plugin.Pragmas
50+
Ide.Plugin.Retrie
5051
Ide.Plugin.Floskell
5152
Ide.Plugin.Formatter
5253
Ide.Plugin.StylishHaskell
@@ -83,6 +84,8 @@ library
8384
, optparse-simple
8485
, process
8586
, regex-tdfa >= 1.3.1.0
87+
, retrie >= 0.1.1.0
88+
, safe-exceptions
8689
, shake >= 0.17.5
8790
, stylish-haskell == 0.11.*
8891
, temporary

0 commit comments

Comments
 (0)