1
1
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:
Rob Rix 2019-09-23 17:39:58 -04:00
parent 6e0a69603e
commit 7922af23fe
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 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