@@ -120,7 +120,7 @@ containsAnns dflags isInteresting bind =
120120 -- type) -- otherwise e.g. `case s of _ -> ...` with `s
121121 -- :: SPEC` would go unreported.
122122 case tyConAppTyConPicky_maybe (varType caseBndr) of
123- Just tycon | isInteresting (GET_NAME tycon) ->
123+ Just tycon | isInteresting (getName tycon) ->
124124 [(parents, CaseScrut caseBndr)]
125125 _ -> []
126126 in hit ++ binders
@@ -139,7 +139,7 @@ containsAnns dflags isInteresting bind =
139139 hit = case fun of
140140 Var i
141141 | Just dcon <- isDataConId_maybe i
142- , isInteresting (GET_NAME (dataConTyCon dcon)) ->
142+ , isInteresting (getName (dataConTyCon dcon)) ->
143143 [(parents, Constr i)]
144144 _ -> []
145145 in hit ++ go parents fun ++ concatMap (go parents) args
@@ -149,7 +149,7 @@ containsAnns dflags isInteresting bind =
149149 -- Check if the Var is of the type of a data constructor of interest
150150 go parents (Var i) =
151151 case tyConAppTyConPicky_maybe (varType i) of
152- Just tycon | isInteresting (GET_NAME tycon) ->
152+ Just tycon | isInteresting (getName tycon) ->
153153 [(parents, Constr i)]
154154 _ -> []
155155
@@ -166,11 +166,11 @@ containsAnns dflags isInteresting bind =
166166
167167contextTyConName :: Context -> Maybe Name
168168contextTyConName (CaseAlt (ALT_CONSTR (DataAlt dcon,_,_))) =
169- Just (GET_NAME $ dataConTyCon dcon)
169+ Just (getName $ dataConTyCon dcon)
170170contextTyConName (CaseAlt _) = Nothing
171171contextTyConName (CaseScrut bndr) =
172- GET_NAME <$> tyConAppTyConPicky_maybe (varType bndr)
173- contextTyConName (Constr con) = GET_NAME <$> constrTyCon con
172+ getName <$> tyConAppTyConPicky_maybe (varType bndr)
173+ contextTyConName (Constr con) = getName <$> constrTyCon con
174174
175175-- | Like 'contextTyConName' but yields the fully-qualified @Module.Type@ name
176176-- (via 'qualifiedTyConName') used in reports rather than the raw 'Name'.
@@ -444,7 +444,7 @@ reportInspected dflags reportMode anns pmAnns allocAnns allBinds (NonRec b _)
444444 stale = filter (`notElem` present) allowed
445445 unless (null stale) $
446446 putMsgS $ " fusion-plugin: "
447- ++ getOccString (GET_NAME b)
447+ ++ getOccString (getName b)
448448 ++ " : redundant " ++ label
449449 ++ " entries (safe to remove): ["
450450 ++ DL. intercalate " , " (map qualifiedName stale)
@@ -453,7 +453,7 @@ reportInspected dflags reportMode anns pmAnns allocAnns allBinds (NonRec b _)
453453 terse ni results =
454454 let names = DL. nub (mapMaybe (contextQualifiedName . snd ) results)
455455 in putMsgS $ " fusion-plugin: "
456- ++ getOccString (GET_NAME b)
456+ ++ getOccString (getName b)
457457 ++ " : found " ++ niForbidLabel ni ++ " ["
458458 ++ DL. intercalate " , " names ++ " ]"
459459
@@ -576,7 +576,7 @@ reportInspectedClasses dflags reportMode classAnns allBinds (NonRec b _) =
576576 report _ hits =
577577 let names = DL. nub (map qualifiedTyConName hits)
578578 in putMsgS $ " fusion-plugin: "
579- ++ getOccString (GET_NAME b)
579+ ++ getOccString (getName b)
580580 ++ " : found forbidden type classes ["
581581 ++ DL. intercalate " , " names ++ " ]"
582582
@@ -588,7 +588,7 @@ reportInspectedClasses dflags reportMode classAnns allBinds (NonRec b _) =
588588 stale = filter (`notElem` present) allowed
589589 unless (null stale) $
590590 putMsgS $ " fusion-plugin: "
591- ++ getOccString (GET_NAME b)
591+ ++ getOccString (getName b)
592592 ++ " : redundant PermitTypeClasses entries (safe to remove): ["
593593 ++ DL. intercalate " , " (map qualifiedName stale) ++ " ]"
594594 warnStalePermitted _ _ = return ()
0 commit comments