mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
🔥 the ToTagBy instance for Loc.
This commit is contained in:
parent
26d064d451
commit
6e0a69603e
@ -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 ()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user