1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Don’t call ToTag for constant fields.

This commit is contained in:
Rob Rix 2019-09-23 17:38:53 -04:00
parent ea917d2d0d
commit 26d064d451
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -132,8 +132,8 @@ instance (GToTag f, GToTag g) => GToTag (f :+: g) where
gtag (L1 l) = gtag l
gtag (R1 r) = gtag r
instance ToTag t => GToTag (K1 R t) where
gtag = tag . unK1
instance GToTag (K1 R t) where
gtag _ = pure ()
instance GToTag Par1 where
gtag _ = pure ()