Skip to content

Commit 9619f28

Browse files
authored
Merge pull request #529 from haskell/mpj/require-aeson-2
Requre aeson 2
2 parents 93cae88 + 4b765c1 commit 9619f28

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

lsp-types/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Revision history for lsp-types
22

3+
## Unreleased
4+
5+
- Require aeson 2
6+
37
## 2.1.0.0
48

59
- Add `dynamicRegistrationSupported` to `Capabilities`.

lsp-types/lsp-types.cabal

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ library
6969
UndecidableInstances
7070

7171
build-depends:
72-
, aeson >=1.2.2.0 && <2.3
72+
, aeson >=2 && <2.3
7373
, base >=4.11 && <5
7474
, binary
7575
, containers
@@ -92,8 +92,6 @@ library
9292
, some
9393
, template-haskell
9494
, text
95-
-- needed for aeson < 1
96-
, unordered-containers
9795

9896
if flag(force-ospath)
9997
build-depends: filepath ^>=1.4.100.0
@@ -528,7 +526,7 @@ library metamodel
528526
Language.LSP.MetaModel.Types
529527

530528
build-depends:
531-
, aeson >=1.2.2.0
529+
, aeson >=2
532530
, base >=4.11 && <5
533531
, file-embed
534532
, lens >=4.15.2

lsp-types/src/Language/LSP/Protocol/Types/Common.hs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ import Control.DeepSeq
2727
import Control.Lens
2828
import Data.Aeson hiding (Null)
2929
import Data.Aeson qualified as J
30-
#if MIN_VERSION_aeson(2,0,0)
31-
import qualified Data.Aeson.KeyMap as KM
32-
#else
33-
import qualified Data.HashMap.Strict as KM
34-
#endif
30+
import Data.Aeson.KeyMap qualified as KM
3531
import Data.Hashable
3632
import Data.Int (Int32)
3733
import Data.Mod.Word

lsp/lsp.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ library
5151

5252
ghc-options: -Wall
5353
build-depends:
54-
, aeson >=1.0.0.0
54+
, aeson >=2
5555
, async >=2.0
5656
, attoparsec
5757
, base >=4.11 && <5

0 commit comments

Comments
 (0)