mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Add Method to HasCategory Category instance
This commit is contained in:
parent
c8b5fb8c08
commit
1afa6d7b0f
@ -117,6 +117,7 @@ instance HasCategory Category where
|
||||
C.Object -> "object"
|
||||
C.Return -> "return statement"
|
||||
C.Class -> "class"
|
||||
C.Method -> "method"
|
||||
|
||||
instance (HasCategory leaf, HasField fields Category) => HasCategory (Term leaf (Record fields)) where
|
||||
toCategoryName = toCategoryName . category . extract
|
||||
|
Loading…
Reference in New Issue
Block a user