File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
lsp-types/src/Language/LSP/Types Expand file tree Collapse file tree 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
320320 parseJSON (A. String " textDocument/rename" ) = pure $ SomeClientMethod STextDocumentRename
321321 parseJSON (A. String " textDocument/prepareRename" ) = pure $ SomeClientMethod STextDocumentPrepareRename
322322 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
324324 parseJSON (A. String " textDocument/prepareCallHierarchy" ) = pure $ SomeClientMethod STextDocumentPrepareCallHierarchy
325325 parseJSON (A. String " callHierarchy/incomingCalls" ) = pure $ SomeClientMethod SCallHierarchyIncomingCalls
326326 parseJSON (A. String " callHierarchy/outgoingCalls" ) = pure $ SomeClientMethod SCallHierarchyOutgoingCalls
Original file line number Diff line number Diff line change 1+ {-# LANGUAGE CPP #-}
12{-# LANGUAGE UndecidableInstances #-}
23{-# LANGUAGE FlexibleContexts #-}
34{-# LANGUAGE TypeInType #-}
@@ -159,13 +160,15 @@ smallList = resize 3 . listOf
159160instance (Arbitrary a ) => Arbitrary (List a ) where
160161 arbitrary = List <$> arbitrary
161162
163+ #if !MIN_VERSION_aeson(2,0,3)
162164instance Arbitrary J. Value where
163165 arbitrary = oneof
164166 [ J. String <$> arbitrary
165167 , J. Number <$> arbitrary
166168 , J. Bool <$> arbitrary
167169 , pure J. Null
168170 ]
171+ #endif
169172
170173-- ---------------------------------------------------------------------
171174
You can’t perform that action at this time.
0 commit comments