File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
plugins/hls-floskell-plugin Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
cabal-version : 3.0
2
2
category : Development
3
3
name : haskell-language-server
4
- version : 2.5.0.0
4
+ version : 2.5.0.1
5
5
synopsis : LSP server for GHC
6
6
description :
7
7
Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
@@ -315,7 +315,7 @@ common overloadedRecordDot
315
315
316
316
common floskell
317
317
if flag(floskell) && (impl(ghc < 9.7 ) || flag(ignore-plugins-ghc-bounds))
318
- build-depends : hls-floskell-plugin == 2.5.0.0
318
+ build-depends : hls-floskell-plugin == 2.5. *
319
319
cpp-options : -Dhls_floskell
320
320
321
321
common fourmolu
Original file line number Diff line number Diff line change
1
+ # Revision history for hls-floskell-plugin
2
+
3
+ ## 2.5.1.0 -- 2024-01-05
4
+ Updates Floskell dependency to 0.11.* , which supports Aeson 2.2.*
Original file line number Diff line number Diff line change 1
1
cabal-version : 2.4
2
2
name : hls-floskell-plugin
3
- version : 2.5.0 .0
3
+ version : 2.5.1 .0
4
4
synopsis : Integration with the Floskell code formatter
5
5
description :
6
6
Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
@@ -28,7 +28,7 @@ library
28
28
hs-source-dirs : src
29
29
build-depends :
30
30
, base >= 4.12 && < 5
31
- , floskell ^>= 0.10.8
31
+ , floskell ^>= 0.11.0
32
32
, ghcide == 2.5.0.0
33
33
, hls-plugin-api == 2.5.0.0
34
34
, lsp-types ^>= 2.1
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ provider _ideState typ contents fp _ = do
39
39
let (range, selectedContents) = case typ of
40
40
FormatText -> (fullRange contents, contents)
41
41
FormatRange r -> (normalize r, extractTextInRange (extendToFullLines r) contents)
42
- result = reformat config (Just file) . TL. encodeUtf8 $ TL. fromStrict selectedContents
42
+ result = reformat config (Just file) $ TL. fromStrict selectedContents
43
43
case result of
44
44
Left err -> throwError $ PluginInternalError $ T. pack $ " floskellCmd: " ++ err
45
- Right new -> pure $ InL [TextEdit range . TL. toStrict $ TL. decodeUtf8 new]
45
+ Right new -> pure $ InL [TextEdit range $ TL. toStrict new]
46
46
47
47
-- | Find Floskell Config, user and system wide or provides a default style.
48
48
-- Every directory of the filepath will be searched to find a user configuration.
You can’t perform that action at this time.
0 commit comments