File tree 6 files changed +11
-11
lines changed
plugins/hls-floskell-plugin
6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 15
15
/plugins /hls-class-plugin @ Ailrun
16
16
/plugins /hls-eval-plugin
17
17
/plugins /hls-explicit-imports-plugin @ pepeiborra
18
- /plugins /hls-floskell-plugin @ Ailrun
18
+ /plugins /hls-floskell-plugin @ Ailrun @ peterbecich
19
19
/plugins /hls-fourmolu-plugin @ georgefst
20
20
/plugins /hls-gadt-plugin @ July541
21
21
/plugins /hls-hlint-plugin @ eddiemundo
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 @@ -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.
Original file line number Diff line number Diff line change 1
- resolver : lts-21.2 # ghc-9.4
1
+ resolver : lts-21.25 # ghc-9.4
2
2
3
3
packages :
4
4
- .
@@ -44,12 +44,11 @@ ghc-options:
44
44
allow-newer : true
45
45
46
46
extra-deps :
47
- - floskell-0.10.7
47
+ - floskell-0.11.1
48
48
- hiedb-0.4.4.0
49
49
- hie-bios-0.13.1
50
50
- implicit-hie-0.1.4.0
51
51
- monad-dijkstra-0.1.1.3
52
- - algebraic-graphs-0.6.1
53
52
- retrie-1.2.2
54
53
- stylish-haskell-0.14.4.0
55
54
- lsp-2.3.0.0
@@ -59,11 +58,8 @@ extra-deps:
59
58
# stan dependencies not found in the stackage snapshot
60
59
- stan-0.1.0.2
61
60
- clay-0.14.0
62
- - colourista-0.1.0.2
63
61
- dir-traverse-0.2.3.0
64
62
- extensions-0.1.0.0
65
- - relude-1.2.1.0
66
- - slist-0.2.1.0
67
63
- tomland-1.3.3.2
68
64
- trial-0.0.0.0
69
65
- trial-optparse-applicative-0.0.0.0
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ ghc-options:
43
43
allow-newer : true
44
44
45
45
extra-deps :
46
- - floskell-0.10.8
46
+ - floskell-0.11.1
47
47
- retrie-1.2.2
48
48
- hiedb-0.4.4.0
49
49
- implicit-hie-0.1.4.0
You can’t perform that action at this time.
0 commit comments