packages feed

hls-brittany-plugin 1.0.1.0 → 1.0.1.1

raw patch · 2 files changed

+5/−6 lines, 2 filesdep ~ghcidePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: ghcide

API changes (from Hackage documentation)

Files

hls-brittany-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               hls-brittany-plugin-version:            1.0.1.0+version:            1.0.1.1 synopsis:           Integration with the Brittany code formatter description:   Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>@@ -25,7 +25,7 @@     , filepath     , ghc     , ghc-boot-th-    , ghcide          >=1.2      && <1.5+    , ghcide          >=1.2      && <1.6     , hls-plugin-api  >=1.1      && <1.3     , lens     , lsp-types
src/Ide/Plugin/Brittany.hs view
@@ -13,7 +13,7 @@ import           Data.Text                   (Text) import qualified Data.Text                   as T import           Development.IDE             hiding (pluginHandlers)-import           Development.IDE.GHC.Compat  (ModSummary (ms_hspp_opts), topDir)+import qualified Development.IDE.GHC.Compat  as GHC hiding (Cpp) import qualified DynFlags                    as D import qualified EnumSet                     as S import           GHC.LanguageExtensions.Type@@ -41,7 +41,6 @@ import qualified Language.Haskell.GHC.ExactPrint as ExactPrint import qualified Language.Haskell.GHC.ExactPrint.Types as ExactPrint import qualified Data.Text.Lazy as TextL-import qualified DynFlags as GHC import qualified GHC import qualified GHC.LanguageExtensions.Type as GHC @@ -61,8 +60,8 @@           FormatText    -> (fullRange contents, contents)           FormatRange r -> (normalize r, extractRange r contents)     modsum <- fmap msrModSummary $ runAction "brittany" ide $ use_ GetModSummaryWithoutTimestamps nfp-    let dflags = ms_hspp_opts modsum-    let withRuntimeLibdir = bracket_ (setEnv key $ topDir dflags) (unsetEnv key)+    let dflags = GHC.ms_hspp_opts modsum+    let withRuntimeLibdir = bracket_ (setEnv key $ GHC.topDir dflags) (unsetEnv key)           where key = "GHC_EXACTPRINT_GHC_LIBDIR"     res <- withRuntimeLibdir $ formatText dflags confFile opts selectedContents     case res of