Skip to content

Commit 48efe53

Browse files
committed
Stylish-haskell plugin
1 parent f01de9c commit 48efe53

File tree

7 files changed

+32
-259
lines changed

7 files changed

+32
-259
lines changed

cabal.project

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ packages:
88
./ghcide/test
99
./hls-plugin-api
1010
./hls-test-utils
11-
./plugins/hls-stylish-haskell-plugin
1211
./plugins/hls-refactor-plugin
1312
./plugins/hls-semantic-tokens-plugin
1413

haskell-language-server.cabal

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,37 @@ common stylishHaskell
15051505
build-depends: hls-stylish-haskell-plugin == 2.6.0.0
15061506
cpp-options: -Dhls_stylishHaskell
15071507

1508+
library hls-stylish-haskell-plugin
1509+
import: warnings
1510+
exposed-modules: Ide.Plugin.StylishHaskell
1511+
hs-source-dirs: plugins/hls-stylish-haskell-plugin/src
1512+
build-depends:
1513+
, base >=4.12 && <5
1514+
, directory
1515+
, filepath
1516+
, ghc-boot-th
1517+
, ghcide == 2.6.0.0
1518+
, hls-plugin-api == 2.6.0.0
1519+
, lsp-types
1520+
, mtl
1521+
, stylish-haskell ^>=0.12 || ^>=0.13 || ^>=0.14.2
1522+
, text
1523+
1524+
default-language: Haskell2010
1525+
1526+
test-suite hls-stylish-haskell-plugin-tests
1527+
import: warnings
1528+
type: exitcode-stdio-1.0
1529+
default-language: Haskell2010
1530+
hs-source-dirs: plugins/hls-stylish-haskell-plugin/test
1531+
main-is: Main.hs
1532+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
1533+
build-depends:
1534+
, base
1535+
, filepath
1536+
, hls-stylish-haskell-plugin
1537+
, hls-test-utils == 2.6.0.0
1538+
15081539
-----------------------------
15091540
-- refactor plugin
15101541
-----------------------------

plugins/hls-stylish-haskell-plugin/LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

plugins/hls-stylish-haskell-plugin/hls-stylish-haskell-plugin.cabal

Lines changed: 0 additions & 54 deletions
This file was deleted.

plugins/hls-stylish-haskell-plugin/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ goldenWithStylishHaskell :: TestName -> FilePath -> FilePath -> (TextDocumentIde
2525
goldenWithStylishHaskell title fp desc = goldenWithHaskellDocFormatter def stylishHaskellPlugin "stylishHaskell" def title testDataDir fp desc "hs"
2626

2727
testDataDir :: FilePath
28-
testDataDir = "test" </> "testdata"
28+
testDataDir = "plugins" </> "hls-stylish-haskell-plugin" </> "test" </> "testdata"

stack-lts21.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ packages:
1010
- ./hls-test-utils
1111
# - ./shake-bench
1212
- ./plugins/hls-refactor-plugin
13-
- ./plugins/hls-stylish-haskell-plugin
1413
- ./plugins/hls-semantic-tokens-plugin
1514

1615
ghc-options:

stack.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ packages:
1010
- ./hls-test-utils
1111
# - ./shake-bench
1212
- ./plugins/hls-refactor-plugin
13-
- ./plugins/hls-stylish-haskell-plugin
1413
- ./plugins/hls-semantic-tokens-plugin
1514

1615
ghc-options:

0 commit comments

Comments
 (0)