Skip to content

Commit

Permalink
Remove stack support from cabal-fmt plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryMilkyJoe committed Aug 4, 2021
1 parent 60b2f1b commit ef9bc5e
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 86 deletions.
3 changes: 2 additions & 1 deletion cabal-ghc901.project
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ packages:
./plugins/hls-pragmas-plugin
./plugins/hls-module-name-plugin
-- ./plugins/hls-ormolu-plugin
-- ./plugins/hls-cabal-fmt-plugin
./plugins/hls-call-hierarchy-plugin
tests: true

Expand Down Expand Up @@ -79,7 +80,7 @@ index-state: 2021-08-01T00:00:00Z

constraints:
-- These plugins doesn't work on GHC9 yet
haskell-language-server -brittany -class -fourmolu -ormolu -splice -stylishhaskell -tactic -refineImports
haskell-language-server -brittany -class -fourmolu -ormolu -splice -stylishhaskell -tactic -refineImports -cabalfmt


allow-newer:
Expand Down
4 changes: 2 additions & 2 deletions plugins/hls-cabal-fmt-plugin/hls-cabal-fmt-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ library
, cabal-fmt
, filepath
, ghcide >=1.2 && <1.5
, hls-plugin-api ^>=1.1
, hls-plugin-api ^>=1.2
, lsp-types
, process
, text
Expand All @@ -40,4 +40,4 @@ test-suite tests
, base
, filepath
, hls-cabal-fmt-plugin
, hls-test-utils ^>=1.0
, hls-test-utils ^>=1.1
13 changes: 4 additions & 9 deletions stack-8.10.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ packages:
- ./plugins/hls-tactics-plugin
- ./plugins/hls-brittany-plugin
- ./plugins/hls-stylish-haskell-plugin
- ./plugins/hls-cabal-fmt-plugin

#- ./plugins/hls-cabal-fmt-plugin
- ./plugins/hls-floskell-plugin
- ./plugins/hls-fourmolu-plugin
- ./plugins/hls-pragmas-plugin
Expand All @@ -42,9 +41,6 @@ extra-deps:
- # ghc-api-compat-8.6
github: hsyl20/ghc-api-compat
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
- # cabal-fmt
github: VeryMilkyJoe/cabal-fmt
commit: 440a6ad7683b81b8479d79a74a1fa8d79ca5c706
- ghc-check-0.5.0.4
- ghc-exactprint-0.6.4
- ghc-lib-8.10.4.20210206
Expand All @@ -58,10 +54,7 @@ extra-deps:
- refinery-0.4.0.0
- retrie-0.1.1.1
- shake-0.19.4
- # stylish haskell
github: VeryMilkyJoe/stylish-haskell
commit: 9279aad535de624fca990ed50f010a1743c0043a
#- stylish-haskell-0.12.2.0
- stylish-haskell-0.12.2.0
- semigroups-0.18.5
- temporary-1.2.1.1
- th-compat-0.1.2@sha256:3d55de1adc542c1a870c9ada90da2fbbe5f4e8bcd3eed545a55c3df9311b32a8,2854
Expand All @@ -88,6 +81,8 @@ configure-options:
flags:
haskell-language-server:
pedantic: true

cabalfmt: false
retrie:
BuildExecutable: false
# Stack doesn't support automatic flags.
Expand Down
12 changes: 4 additions & 8 deletions stack-8.10.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ packages:
- ./plugins/hls-tactics-plugin
- ./plugins/hls-brittany-plugin
- ./plugins/hls-stylish-haskell-plugin
- ./plugins/hls-cabal-fmt-plugin
#- ./plugins/hls-cabal-fmt-plugin
- ./plugins/hls-floskell-plugin
- ./plugins/hls-fourmolu-plugin
- ./plugins/hls-pragmas-plugin
Expand All @@ -41,9 +41,6 @@ extra-deps:
- # ghc-api-compat-8.6
github: hsyl20/ghc-api-compat
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
- # cabal-fmt
github: VeryMilkyJoe/cabal-fmt
commit: 440a6ad7683b81b8479d79a74a1fa8d79ca5c706
- ghc-check-0.5.0.4
- ghc-exactprint-0.6.4
- ghc-lib-8.10.4.20210206
Expand All @@ -57,10 +54,7 @@ extra-deps:
- refinery-0.4.0.0
- retrie-0.1.1.1
- shake-0.19.4
- # stylish haskell
github: VeryMilkyJoe/stylish-haskell
commit: 9279aad535de624fca990ed50f010a1743c0043a
#- stylish-haskell-0.12.2.0
- stylish-haskell-0.12.2.0
- semigroups-0.18.5
- temporary-1.2.1.1
- th-compat-0.1.2@sha256:3d55de1adc542c1a870c9ada90da2fbbe5f4e8bcd3eed545a55c3df9311b32a8,2854
Expand All @@ -87,6 +81,8 @@ configure-options:
flags:
haskell-language-server:
pedantic: true

cabalfmt: false
retrie:
BuildExecutable: false
# Stack doesn't support automatic flags.
Expand Down
12 changes: 4 additions & 8 deletions stack-8.10.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ packages:
- ./plugins/hls-tactics-plugin
- ./plugins/hls-brittany-plugin
- ./plugins/hls-stylish-haskell-plugin
- ./plugins/hls-cabal-fmt-plugin
#- ./plugins/hls-cabal-fmt-plugin
- ./plugins/hls-floskell-plugin
- ./plugins/hls-fourmolu-plugin
- ./plugins/hls-pragmas-plugin
Expand All @@ -41,9 +41,6 @@ extra-deps:
- # ghc-api-compat-8.6
github: hsyl20/ghc-api-compat
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
- # cabal-fmt
github: VeryMilkyJoe/cabal-fmt
commit: 440a6ad7683b81b8479d79a74a1fa8d79ca5c706
- ghc-check-0.5.0.4
- ghc-exactprint-0.6.4
- ghc-source-gen-0.4.1.0
Expand All @@ -53,10 +50,7 @@ extra-deps:
- monad-dijkstra-0.1.1.2
- refinery-0.4.0.0
- retrie-0.1.1.1
- # stylish haskell
github: VeryMilkyJoe/stylish-haskell
commit: 9279aad535de624fca990ed50f010a1743c0043a
#- stylish-haskell-0.12.2.0
- stylish-haskell-0.12.2.0
- semigroups-0.18.5
- temporary-1.2.1.1
- th-compat-0.1.2@sha256:3d55de1adc542c1a870c9ada90da2fbbe5f4e8bcd3eed545a55c3df9311b32a8,2854
Expand Down Expand Up @@ -89,6 +83,8 @@ configure-options:
flags:
haskell-language-server:
pedantic: true

cabalfmt: false
retrie:
BuildExecutable: false
# Stack doesn't support automatic flags.
Expand Down
12 changes: 4 additions & 8 deletions stack-8.10.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ packages:
- ./plugins/hls-tactics-plugin
- ./plugins/hls-brittany-plugin
- ./plugins/hls-stylish-haskell-plugin
- ./plugins/hls-cabal-fmt-plugin
#- ./plugins/hls-cabal-fmt-plugin
- ./plugins/hls-floskell-plugin
- ./plugins/hls-fourmolu-plugin
- ./plugins/hls-pragmas-plugin
Expand All @@ -43,9 +43,6 @@ extra-deps:
- # ghc-api-compat-8.6
github: hsyl20/ghc-api-compat
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
- # cabal-fmt
github: VeryMilkyJoe/cabal-fmt
commit: 440a6ad7683b81b8479d79a74a1fa8d79ca5c706
- ghc-check-0.5.0.4
- ghc-exactprint-0.6.4
- ghc-source-gen-0.4.1.0
Expand All @@ -55,10 +52,7 @@ extra-deps:
- monad-dijkstra-0.1.1.2
- refinery-0.4.0.0
- retrie-1.0.0.0
- # stylish haskell
github: VeryMilkyJoe/stylish-haskell
commit: 9279aad535de624fca990ed50f010a1743c0043a
#- stylish-haskell-0.12.2.0
- stylish-haskell-0.12.2.0
- semigroups-0.18.5
- temporary-1.2.1.1
- th-compat-0.1.2@sha256:3d55de1adc542c1a870c9ada90da2fbbe5f4e8bcd3eed545a55c3df9311b32a8,2854
Expand Down Expand Up @@ -91,6 +85,8 @@ configure-options:
flags:
haskell-language-server:
pedantic: true

cabalfmt: false
retrie:
BuildExecutable: false
# Stack doesn't support automatic flags.
Expand Down
12 changes: 4 additions & 8 deletions stack-8.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ packages:
- ./plugins/hls-tactics-plugin
- ./plugins/hls-brittany-plugin
- ./plugins/hls-stylish-haskell-plugin
- ./plugins/hls-cabal-fmt-plugin
#- ./plugins/hls-cabal-fmt-plugin
- ./plugins/hls-floskell-plugin
- ./plugins/hls-fourmolu-plugin
- ./plugins/hls-pragmas-plugin
Expand All @@ -48,9 +48,6 @@ extra-deps:
- # ghc-api-compat-8.6
github: hsyl20/ghc-api-compat
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
- # cabal-fmt
github: VeryMilkyJoe/cabal-fmt
commit: 440a6ad7683b81b8479d79a74a1fa8d79ca5c706
- ghc-check-0.5.0.4
- ghc-events-0.13.0
- ghc-exactprint-0.6.4
Expand Down Expand Up @@ -87,10 +84,7 @@ extra-deps:
- retrie-0.1.1.1
- semialign-1.1
- shake-0.19.4
- # stylish haskell
github: VeryMilkyJoe/stylish-haskell
commit: 9279aad535de624fca990ed50f010a1743c0043a
#- stylish-haskell-0.12.2.0
- stylish-haskell-0.12.2.0
- tasty-rerun-1.1.17
- temporary-1.2.1.1
- these-1.1.1.1
Expand All @@ -116,6 +110,8 @@ extra-deps:
flags:
haskell-language-server:
pedantic: true

cabalfmt: false
retrie:
BuildExecutable: false
# Stack doesn't support automatic flags.
Expand Down
12 changes: 4 additions & 8 deletions stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ packages:
- ./plugins/hls-tactics-plugin
- ./plugins/hls-brittany-plugin
- ./plugins/hls-stylish-haskell-plugin
- ./plugins/hls-cabal-fmt-plugin
#- ./plugins/hls-cabal-fmt-plugin
- ./plugins/hls-floskell-plugin
- ./plugins/hls-fourmolu-plugin
- ./plugins/hls-pragmas-plugin
Expand Down Expand Up @@ -49,9 +49,6 @@ extra-deps:
- # ghc-api-compat-8.6
github: hsyl20/ghc-api-compat
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
- # cabal-fmt
github: VeryMilkyJoe/cabal-fmt
commit: 440a6ad7683b81b8479d79a74a1fa8d79ca5c706
- ghc-check-0.5.0.4
- ghc-events-0.13.0
- ghc-exactprint-0.6.4
Expand Down Expand Up @@ -88,10 +85,7 @@ extra-deps:
- retrie-0.1.1.1
- semialign-1.1
- shake-0.19.4
- # stylish haskell
github: VeryMilkyJoe/stylish-haskell
commit: 9279aad535de624fca990ed50f010a1743c0043a
#- stylish-haskell-0.12.2.0
- stylish-haskell-0.12.2.0
- tasty-rerun-1.1.17
- temporary-1.2.1.1
- these-1.1.1.1
Expand Down Expand Up @@ -125,6 +119,8 @@ configure-options:
flags:
haskell-language-server:
pedantic: true

cabalfmt: false
retrie:
BuildExecutable: false
# Stack doesn't support automatic flags.
Expand Down
12 changes: 4 additions & 8 deletions stack-8.8.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ packages:
- ./plugins/hls-tactics-plugin
- ./plugins/hls-brittany-plugin
- ./plugins/hls-stylish-haskell-plugin
- ./plugins/hls-cabal-fmt-plugin
#- ./plugins/hls-cabal-fmt-plugin
- ./plugins/hls-floskell-plugin
- ./plugins/hls-fourmolu-plugin
- ./plugins/hls-pragmas-plugin
Expand All @@ -43,9 +43,6 @@ extra-deps:
- # ghc-api-compat-8.6
github: hsyl20/ghc-api-compat
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
- # cabal-fmt
github: VeryMilkyJoe/cabal-fmt
commit: 440a6ad7683b81b8479d79a74a1fa8d79ca5c706
- ghc-check-0.5.0.4
- ghc-exactprint-0.6.4
- ghc-lib-8.10.4.20210206
Expand All @@ -71,10 +68,7 @@ extra-deps:
- retrie-0.1.1.1
- semigroups-0.18.5
- shake-0.19.4
- # stylish haskell
github: VeryMilkyJoe/stylish-haskell
commit: 9279aad535de624fca990ed50f010a1743c0043a
#- stylish-haskell-0.12.2.0
- stylish-haskell-0.12.2.0
- temporary-1.2.1.1
- uniplate-1.6.13
- th-compat-0.1.2@sha256:3d55de1adc542c1a870c9ada90da2fbbe5f4e8bcd3eed545a55c3df9311b32a8,2854
Expand Down Expand Up @@ -104,6 +98,8 @@ configure-options:
flags:
haskell-language-server:
pedantic: true

cabalfmt: false
retrie:
BuildExecutable: false
# Stack doesn't support automatic flags.
Expand Down
12 changes: 4 additions & 8 deletions stack-8.8.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ packages:
- ./plugins/hls-tactics-plugin
- ./plugins/hls-brittany-plugin
- ./plugins/hls-stylish-haskell-plugin
- ./plugins/hls-cabal-fmt-plugin
#- ./plugins/hls-cabal-fmt-plugin
- ./plugins/hls-floskell-plugin
- ./plugins/hls-fourmolu-plugin
- ./plugins/hls-pragmas-plugin
Expand All @@ -43,9 +43,6 @@ extra-deps:
- # ghc-api-compat-8.6
github: hsyl20/ghc-api-compat
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
- # cabal-fmt
github: VeryMilkyJoe/cabal-fmt
commit: 440a6ad7683b81b8479d79a74a1fa8d79ca5c706
- ghc-check-0.5.0.4
- ghc-exactprint-0.6.4
- ghc-lib-8.10.4.20210206
Expand All @@ -70,10 +67,7 @@ extra-deps:
- retrie-0.1.1.1
- semigroups-0.18.5
- shake-0.19.4
- # stylish haskell
github: VeryMilkyJoe/stylish-haskell
commit: 9279aad535de624fca990ed50f010a1743c0043a
#- stylish-haskell-0.12.2.0
- stylish-haskell-0.12.2.0
- temporary-1.2.1.1
- th-compat-0.1.2@sha256:3d55de1adc542c1a870c9ada90da2fbbe5f4e8bcd3eed545a55c3df9311b32a8,2854
- bytestring-encoding-0.1.0.0@sha256:460b49779fbf0112e8e2f1753c1ed9131eb18827600c298f4d6bb51c4e8c1c0d,1727
Expand Down Expand Up @@ -101,6 +95,8 @@ configure-options:
flags:
haskell-language-server:
pedantic: true

cabalfmt: false
retrie:
BuildExecutable: false
# Stack doesn't support automatic flags.
Expand Down
11 changes: 1 addition & 10 deletions stack-9.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,6 @@ extra-deps:
commit: ca23431a8dfa013992f9164ccc882a3277361f17
# https://github.com/diagrams/active/pull/36

# - # stylish haskell
# github: VeryMilkyJoe/stylish-haskell
# commit: 9279aad535de624fca990ed50f010a1743c0043a
# https://github.com/haskell/stylish-haskell/pull/375

- # cabal-fmt
github: VeryMilkyJoe/cabal-fmt
commit: 440a6ad7683b81b8479d79a74a1fa8d79ca5c706
# https://github.com/phadej/cabal-fmt/pull/33

# benchmark dependency
- github: HeinrichApfelmus/operational
commit: 16e19aaf34e286f3d27b3988c61040823ec66537
Expand All @@ -127,6 +117,7 @@ flags:
fourmolu: false
stylishHaskell: false
brittany: false
cabalfmt: false
retrie:
BuildExecutable: false
# Stack doesn't support automatic flags.
Expand Down
Loading

0 comments on commit ef9bc5e

Please sign in to comment.