Skip to content

Commit 8a8307d

Browse files
pepeiborrahololeap
authored andcommitted
Compatibility with older aeson releases (haskell#2868)
1 parent 432eb88 commit 8a8307d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plugins/hls-call-hierarchy-plugin/hls-call-hierarchy-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ library
2424

2525
hs-source-dirs: src
2626
build-depends:
27-
, aeson >=1.5.2.0
27+
, aeson
2828
, base >=4.12 && <5
2929
, bytestring
3030
, containers

plugins/hls-call-hierarchy-plugin/src/Ide/Plugin/CallHierarchy/Internal.hs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE FlexibleContexts #-}
23
{-# LANGUAGE LambdaCase #-}
34
{-# LANGUAGE NamedFieldPuns #-}
@@ -189,6 +190,9 @@ mkSymbol = \case
189190
deriving instance Ord SymbolKind
190191
deriving instance Ord SymbolTag
191192
deriving instance Ord CallHierarchyItem
193+
#if !MIN_VERSION_aeson(1,5,2)
194+
deriving instance Ord Value
195+
#endif
192196

193197
-- | Render incoming calls request.
194198
incomingCalls :: PluginMethodHandler IdeState CallHierarchyIncomingCalls

0 commit comments

Comments
 (0)