diff --git a/semantic-typescript/src/Language/TypeScript/Tags.hs b/semantic-typescript/src/Language/TypeScript/Tags.hs index d964cdf20..43f5f24e9 100644 --- a/semantic-typescript/src/Language/TypeScript/Tags.hs +++ b/semantic-typescript/src/Language/TypeScript/Tags.hs @@ -125,13 +125,13 @@ gtags :: ( Has (Reader Source) sig m , Has (Writer Tags.Tags) sig m , Generic1 t - , Tags.GFoldable1 ToTags (Rep1 t) + , Tags.GTraversable1 ToTags (Rep1 t) ) => t Loc -> m () -gtags = getAp . Tags.gfoldMap1 @ToTags (Ap . tags) . from1 +gtags = getAp . Tags.foldMap1 @ToTags (const mempty) (Ap . tags) . Tags.Generics -instance (Generic1 t, Tags.GFoldable1 ToTags (Rep1 t)) => ToTagsBy 'Generic t where +instance (Generic1 t, Tags.GTraversable1 ToTags (Rep1 t)) => ToTagsBy 'Generic t where tags' = gtags yieldTag :: (Has (Reader Source) sig m, Has (Writer Tags.Tags) sig m) => Text -> Kind -> Loc -> Range -> m ()