mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
📝 the ToTags instance.
This commit is contained in:
parent
8073e854a1
commit
40e83cab6b
@ -12,5 +12,6 @@ newtype Term a = Term { getTerm :: JSON.Document a }
|
||||
instance TS.Unmarshal Term where
|
||||
unmarshalNode node = Term <$> TS.unmarshalNode node
|
||||
|
||||
-- | Tags aren’t really meaningful for JSON, but by implementing this we can avoid having to customize the set of parsers used for computing tags.
|
||||
instance Tags.ToTags Term where
|
||||
tags _ _ = []
|
||||
|
Loading…
Reference in New Issue
Block a user