hls-fourmolu-plugin 2.5.0.0 → 2.6.0.0
raw patch · 2 files changed
+8/−17 lines, 2 filesdep ~ghcidedep ~hls-plugin-apidep ~hls-test-utilsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ghcide, hls-plugin-api, hls-test-utils
API changes (from Hackage documentation)
Files
- hls-fourmolu-plugin.cabal +5/−16
- src/Ide/Plugin/Fourmolu.hs +3/−1
hls-fourmolu-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: hls-fourmolu-plugin-version: 2.5.0.0+version: 2.6.0.0 synopsis: Integration with the Fourmolu code formatter description: Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>@@ -23,11 +23,6 @@ location: git://github.com/haskell/haskell-language-server.git library- -- Plugins that need exactprint have not been updated for 9.8 yet- if impl(ghc >= 9.8)- buildable: False- else- buildable: True exposed-modules: Ide.Plugin.Fourmolu hs-source-dirs: src@@ -37,8 +32,8 @@ , filepath , ghc , ghc-boot-th- , ghcide == 2.5.0.0- , hls-plugin-api == 2.5.0.0+ , ghcide == 2.6.0.0+ , hls-plugin-api == 2.6.0.0 , lens , lsp , mtl@@ -48,10 +43,8 @@ if impl(ghc >= 9.0) && impl(ghc < 9.2) build-depends: fourmolu ^>= 0.11- elif impl(ghc >= 9.2) && impl(ghc < 9.8)+ else build-depends: fourmolu ^>= 0.14- else- buildable: False -- fourmolu 0.9.0 fails to build on Windows CI for reasons unknown if impl(ghc >= 9.2) && os(windows) && impl(ghc < 9.4)@@ -59,10 +52,6 @@ default-language: Haskell2010 test-suite tests- if impl(ghc >= 9.8)- buildable: False- else- buildable: True type: exitcode-stdio-1.0 default-language: Haskell2010 hs-source-dirs: test@@ -77,5 +66,5 @@ , filepath , hls-fourmolu-plugin , hls-plugin-api- , hls-test-utils == 2.5.0.0+ , hls-test-utils == 2.6.0.0 , lsp-test
src/Ide/Plugin/Fourmolu.hs view
@@ -49,10 +49,12 @@ descriptor :: Recorder (WithPriority LogEvent) -> PluginId -> PluginDescriptor IdeState descriptor recorder plId =- (defaultPluginDescriptor plId)+ (defaultPluginDescriptor plId desc) { pluginHandlers = mkFormattingHandlers $ provider recorder plId , pluginConfigDescriptor = defaultConfigDescriptor{configCustomConfig = mkCustomConfig properties} }+ where+ desc = "Provides formatting of Haskell files via fourmolu. Built with fourmolu-" <> VERSION_fourmolu properties :: Properties '[ 'PropertyKey "external" 'TBoolean] properties =