File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
src/Language/LSP/Protocol/Types Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,6 @@ package lsp-types
18
18
-- has very many independent modules
19
19
ghc-options : -j4
20
20
21
+ allow-newer :
22
+ generic-lens :text,
23
+ generic-lens-core :text,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ library
69
69
UndecidableInstances
70
70
71
71
build-depends :
72
- , aeson >= 1.2.2.0 && < 2.2
72
+ , aeson >= 1.2.2.0 && < 2.3
73
73
, base >= 4.11 && < 5
74
74
, binary
75
75
, containers
@@ -87,7 +87,7 @@ library
87
87
, mtl < 2.4
88
88
, prettyprinter
89
89
, network-uri >= 2.6
90
- , row-types
90
+ , row-types >= 1.0
91
91
, safe
92
92
, some
93
93
, template-haskell
Original file line number Diff line number Diff line change @@ -183,7 +183,11 @@ instance Semigroup s => Semigroup (s |? Null) where
183
183
-- in both aeson-1 and aeson-2
184
184
185
185
-- | Include a value in an JSON object optionally, omitting it if it is 'Nothing'.
186
+ #if MIN_VERSION_aeson(2,2,0)
187
+ (.=?) :: (J. KeyValue e kv , J. ToJSON v ) => String -> Maybe v -> [kv ]
188
+ #else
186
189
(.=?) :: (J. KeyValue kv , J. ToJSON v ) => String -> Maybe v -> [kv ]
190
+ #endif
187
191
k .=? v = case v of
188
192
Just v' -> [fromString k J. .= v']
189
193
Nothing -> mempty
You can’t perform that action at this time.
0 commit comments