Skip to content

Commit 92d3ba9

Browse files
authored
update Floskell to 0.11.* (#3933)
* update Floskell to 0.11.* Floskell 0.11.* supports Aeson 2.2.* * package version 2.5.0.0, Stack Floskell dependency, codeowner * update GHC 9.4 Stack resolver https://www.stackage.org/lts-21.25 remove duplicate `extra-deps`
1 parent 37925a0 commit 92d3ba9

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/plugins/hls-class-plugin @Ailrun
1616
/plugins/hls-eval-plugin
1717
/plugins/hls-explicit-imports-plugin @pepeiborra
18-
/plugins/hls-floskell-plugin @Ailrun
18+
/plugins/hls-floskell-plugin @Ailrun @peterbecich
1919
/plugins/hls-fourmolu-plugin @georgefst
2020
/plugins/hls-gadt-plugin @July541
2121
/plugins/hls-hlint-plugin @eddiemundo
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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.*

plugins/hls-floskell-plugin/hls-floskell-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ library
2828
hs-source-dirs: src
2929
build-depends:
3030
, base >=4.12 && <5
31-
, floskell ^>=0.10.8
31+
, floskell ^>=0.11.0
3232
, ghcide == 2.5.0.0
3333
, hls-plugin-api == 2.5.0.0
3434
, lsp-types ^>=2.1

plugins/hls-floskell-plugin/src/Ide/Plugin/Floskell.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ provider _ideState typ contents fp _ = do
3939
let (range, selectedContents) = case typ of
4040
FormatText -> (fullRange contents, contents)
4141
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
4343
case result of
4444
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]
4646

4747
-- | Find Floskell Config, user and system wide or provides a default style.
4848
-- Every directory of the filepath will be searched to find a user configuration.

stack-lts21.yaml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-21.2 # ghc-9.4
1+
resolver: lts-21.25 # ghc-9.4
22

33
packages:
44
- .
@@ -44,12 +44,11 @@ ghc-options:
4444
allow-newer: true
4545

4646
extra-deps:
47-
- floskell-0.10.7
47+
- floskell-0.11.1
4848
- hiedb-0.4.4.0
4949
- hie-bios-0.13.1
5050
- implicit-hie-0.1.4.0
5151
- monad-dijkstra-0.1.1.3
52-
- algebraic-graphs-0.6.1
5352
- retrie-1.2.2
5453
- stylish-haskell-0.14.4.0
5554
- lsp-2.3.0.0
@@ -59,11 +58,8 @@ extra-deps:
5958
# stan dependencies not found in the stackage snapshot
6059
- stan-0.1.0.2
6160
- clay-0.14.0
62-
- colourista-0.1.0.2
6361
- dir-traverse-0.2.3.0
6462
- extensions-0.1.0.0
65-
- relude-1.2.1.0
66-
- slist-0.2.1.0
6763
- tomland-1.3.3.2
6864
- trial-0.0.0.0
6965
- trial-optparse-applicative-0.0.0.0

stack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ghc-options:
4343
allow-newer: true
4444

4545
extra-deps:
46-
- floskell-0.10.8
46+
- floskell-0.11.1
4747
- retrie-1.2.2
4848
- hiedb-0.4.4.0
4949
- implicit-hie-0.1.4.0

0 commit comments

Comments
 (0)