File tree 2 files changed +4
-1
lines changed
lsp-types/src/Language/LSP/Types 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ instance FromJSON SomeClientMethod where
320
320
parseJSON (A. String " textDocument/rename" ) = pure $ SomeClientMethod STextDocumentRename
321
321
parseJSON (A. String " textDocument/prepareRename" ) = pure $ SomeClientMethod STextDocumentPrepareRename
322
322
parseJSON (A. String " textDocument/foldingRange" ) = pure $ SomeClientMethod STextDocumentFoldingRange
323
- parseJSON (A. String " textDocument/selectionRange" ) = pure $ SomeClientMethod STextDocumentFoldingRange
323
+ parseJSON (A. String " textDocument/selectionRange" ) = pure $ SomeClientMethod STextDocumentSelectionRange
324
324
parseJSON (A. String " textDocument/prepareCallHierarchy" ) = pure $ SomeClientMethod STextDocumentPrepareCallHierarchy
325
325
parseJSON (A. String " callHierarchy/incomingCalls" ) = pure $ SomeClientMethod SCallHierarchyIncomingCalls
326
326
parseJSON (A. String " callHierarchy/outgoingCalls" ) = pure $ SomeClientMethod SCallHierarchyOutgoingCalls
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE CPP #-}
1
2
{-# LANGUAGE UndecidableInstances #-}
2
3
{-# LANGUAGE FlexibleContexts #-}
3
4
{-# LANGUAGE TypeInType #-}
@@ -159,13 +160,15 @@ smallList = resize 3 . listOf
159
160
instance (Arbitrary a ) => Arbitrary (List a ) where
160
161
arbitrary = List <$> arbitrary
161
162
163
+ #if !MIN_VERSION_aeson(2,0,3)
162
164
instance Arbitrary J. Value where
163
165
arbitrary = oneof
164
166
[ J. String <$> arbitrary
165
167
, J. Number <$> arbitrary
166
168
, J. Bool <$> arbitrary
167
169
, pure J. Null
168
170
]
171
+ #endif
169
172
170
173
-- ---------------------------------------------------------------------
171
174
You can’t perform that action at this time.
0 commit comments