1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 01:11:52 +03:00

🔥 the ToTagBy instance for Loc.

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

View File

@ -52,7 +52,6 @@ class ToTagBy (strategy :: Strategy) t where
data Strategy = Generic | Custom
type family ToTagInstance t :: Strategy where
ToTagInstance Loc = 'Custom
ToTagInstance Text = 'Custom
ToTagInstance [_] = 'Custom
ToTagInstance ((_ :+: _) _) = 'Custom
@ -61,9 +60,6 @@ type family ToTagInstance t :: Strategy where
ToTagInstance (Py.Call Loc) = 'Custom
ToTagInstance _ = 'Generic
instance ToTagBy 'Custom Loc where
tag' _ = pure ()
instance ToTagBy 'Custom Text where
tag' _ = pure ()