packages feed

hls-fourmolu-plugin 1.0.1.2 → 1.0.2.0

raw patch · 2 files changed

+7/−7 lines, 2 filesdep ~fourmoludep ~ghcidedep ~hls-plugin-apiPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: fourmolu, ghcide, hls-plugin-api, hls-test-utils

API changes (from Hackage documentation)

Files

hls-fourmolu-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               hls-fourmolu-plugin-version:            1.0.1.2+version:            1.0.2.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,11 @@   build-depends:     , base            >=4.12 && <5     , filepath-    , fourmolu        ^>=0.3 || ^>=0.4+    , fourmolu        ^>=0.3 || ^>=0.4 || ^>= 0.5     , ghc     , ghc-boot-th-    , ghcide          ^>=1.5.0-    , hls-plugin-api  >=1.1  && <1.3+    , ghcide          ^>=1.6+    , hls-plugin-api  ^>=1.3     , lens     , lsp     , text@@ -44,5 +44,5 @@     , base     , filepath     , hls-fourmolu-plugin-    , hls-test-utils       >=1.0 && <1.2+    , hls-test-utils       ^>=1.2     , lsp-test
src/Ide/Plugin/Fourmolu.hs view
@@ -79,12 +79,12 @@   where     fp' = fromNormalizedFilePath fp     title = "Formatting " <> T.pack (takeFileName fp')-    lspPrinterOpts = mempty{poIndentation = Just $ fo ^. tabSize}+    lspPrinterOpts = mempty{poIndentation = Just $ fromIntegral $ fo ^. tabSize}     region = case typ of         FormatText ->             RegionIndices Nothing Nothing         FormatRange (Range (Position sl _) (Position el _)) ->-            RegionIndices (Just $ sl + 1) (Just $ el + 1)+            RegionIndices (Just $ fromIntegral $ sl + 1) (Just $ fromIntegral $ el + 1)  convertDynFlags :: DynFlags -> IO [DynOption] convertDynFlags df =