File tree 1 file changed +5
-1
lines changed
plugins/hls-class-plugin/src/Ide/Plugin/Class
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE CPP #-}
1
2
{-# LANGUAGE GADTs #-}
2
3
{-# LANGUAGE OverloadedLists #-}
3
4
{-# LANGUAGE RecordWildCards #-}
@@ -203,7 +204,11 @@ isClassNodeIdentifier (Right i) ident | 'C':':':_ <- unpackFS $ occNameFS $ occ
203
204
isClassNodeIdentifier _ _ = False
204
205
205
206
isClassMethodWarning :: T. Text -> Bool
207
+ #if MIN_VERSION_ghc(9,8,0)
208
+ isClassMethodWarning = T. isPrefixOf " No explicit implementation for"
209
+ #else
206
210
isClassMethodWarning = T. isPrefixOf " • No explicit implementation for"
211
+ #endif
207
212
208
213
isInstanceValBind :: ContextInfo -> Bool
209
214
isInstanceValBind (ValBind InstanceBind _ _) = True
@@ -242,4 +247,3 @@ minDefToMethodGroups hsc gblEnv range sigs minDef = makeMethodGroup <$> go minDe
242
247
go (Or ms) = concatMap (go . unLoc) ms
243
248
go (And ms) = foldr (liftA2 (<>) . go . unLoc) [[] ] ms
244
249
go (Parens m) = go (unLoc m)
245
-
You can’t perform that action at this time.
0 commit comments