packages feed

hls-ormolu-plugin 2.5.0.0 → 2.6.0.0

raw patch · 2 files changed

+7/−10 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-ormolu-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               hls-ormolu-plugin-version:            2.5.0.0+version:            2.6.0.0 synopsis:           Integration with the Ormolu code formatter description:   Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>@@ -23,9 +23,6 @@     location: https://github.com/haskell/haskell-language-server.git  library-  -- Plugins that need exactprint have not been updated for 9.8 yet-  if impl(ghc >= 9.7)-    buildable: False   exposed-modules:  Ide.Plugin.Ormolu   hs-source-dirs:   src   build-depends:@@ -34,8 +31,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@@ -47,8 +44,6 @@   default-language: Haskell2010  test-suite tests-  if impl(ghc >= 9.7)-    buildable: False   type:             exitcode-stdio-1.0   default-language: Haskell2010   hs-source-dirs:   test@@ -63,7 +58,7 @@     , filepath     , hls-ormolu-plugin     , hls-plugin-api-    , hls-test-utils     == 2.5.0.0+    , hls-test-utils     == 2.6.0.0     , lsp-types     , text     , ormolu
src/Ide/Plugin/Ormolu.hs view
@@ -52,10 +52,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 ormolu. Built with ormolu-" <> VERSION_ormolu  properties :: Properties '[ 'PropertyKey "external" 'TBoolean] properties =