mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Rename ToTagInstance to ToTagsInstance.
This commit is contained in:
parent
f791316003
commit
60c3e359de
@ -33,7 +33,7 @@ instance Tags.ToTags Term where
|
|||||||
tags = tags . getTerm
|
tags = tags . getTerm
|
||||||
|
|
||||||
|
|
||||||
instance (ToTagsBy strategy t, strategy ~ ToTagInstance t) => ToTags t where
|
instance (ToTagsBy strategy t, strategy ~ ToTagsInstance t) => ToTags t where
|
||||||
tags = tags' @strategy
|
tags = tags' @strategy
|
||||||
|
|
||||||
|
|
||||||
@ -49,12 +49,12 @@ class ToTagsBy (strategy :: Strategy) t where
|
|||||||
|
|
||||||
data Strategy = Generic | Custom
|
data Strategy = Generic | Custom
|
||||||
|
|
||||||
type family ToTagInstance t :: Strategy where
|
type family ToTagsInstance t :: Strategy where
|
||||||
ToTagInstance (_ :+: _) = 'Custom
|
ToTagsInstance (_ :+: _) = 'Custom
|
||||||
ToTagInstance Py.FunctionDefinition = 'Custom
|
ToTagsInstance Py.FunctionDefinition = 'Custom
|
||||||
ToTagInstance Py.ClassDefinition = 'Custom
|
ToTagsInstance Py.ClassDefinition = 'Custom
|
||||||
ToTagInstance Py.Call = 'Custom
|
ToTagsInstance Py.Call = 'Custom
|
||||||
ToTagInstance _ = 'Generic
|
ToTagsInstance _ = 'Generic
|
||||||
|
|
||||||
instance (ToTags l, ToTags r) => ToTagsBy 'Custom (l :+: r) where
|
instance (ToTags l, ToTags r) => ToTagsBy 'Custom (l :+: r) where
|
||||||
tags' (L1 l) = tags l
|
tags' (L1 l) = tags l
|
||||||
|
Loading…
Reference in New Issue
Block a user