Skip to content

Commit a29d8e8

Browse files
jhrcekmergify[bot]
andauthored
Fix -Wall and -Wunused-packages in stylish-haskell plugin (#4015)
* Fix -Wall and -Wunused-packages in stylish-haskell plugin * Format --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent a3e1f8a commit a29d8e8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ source-repository head
1919
type: git
2020
location: https://github.com/haskell/haskell-language-server.git
2121

22+
common warnings
23+
ghc-options: -Wall -Wunused-packages
24+
2225
library
26+
import: warnings
2327
exposed-modules: Ide.Plugin.StylishHaskell
2428
hs-source-dirs: src
2529
build-depends:
2630
, base >=4.12 && <5
2731
, directory
2832
, filepath
29-
, ghc
3033
, ghc-boot-th
3134
, ghcide == 2.6.0.0
3235
, hls-plugin-api == 2.6.0.0
@@ -38,6 +41,7 @@ library
3841
default-language: Haskell2010
3942

4043
test-suite tests
44+
import: warnings
4145
type: exitcode-stdio-1.0
4246
default-language: Haskell2010
4347
hs-source-dirs: test

plugins/hls-stylish-haskell-plugin/src/Ide/Plugin/StylishHaskell.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import Control.Monad.Except (throwError)
1111
import Control.Monad.IO.Class
1212
import Data.Text (Text)
1313
import qualified Data.Text as T
14-
import Development.IDE hiding (pluginHandlers)
14+
import Development.IDE hiding (getExtensions,
15+
pluginHandlers)
1516
import Development.IDE.Core.PluginUtils
1617
import Development.IDE.GHC.Compat (ModSummary (ms_hspp_opts),
1718
extensionFlags)

0 commit comments

Comments
 (0)