mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
🔥 the ToTagBy instance for Text.
This commit is contained in:
parent
6e0a69603e
commit
7922af23fe
@ -52,7 +52,6 @@ class ToTagBy (strategy :: Strategy) t where
|
||||
data Strategy = Generic | Custom
|
||||
|
||||
type family ToTagInstance t :: Strategy where
|
||||
ToTagInstance Text = 'Custom
|
||||
ToTagInstance [_] = 'Custom
|
||||
ToTagInstance ((_ :+: _) _) = 'Custom
|
||||
ToTagInstance (Py.FunctionDefinition Loc) = 'Custom
|
||||
@ -60,9 +59,6 @@ type family ToTagInstance t :: Strategy where
|
||||
ToTagInstance (Py.Call Loc) = 'Custom
|
||||
ToTagInstance _ = 'Generic
|
||||
|
||||
instance ToTagBy 'Custom Text where
|
||||
tag' _ = pure ()
|
||||
|
||||
instance ToTag t => ToTagBy 'Custom [t] where
|
||||
tag' = traverse_ tag
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user