1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 21:01:35 +03:00

Derive a Generic instance over Syntax.

This commit is contained in:
Rob Rix 2016-06-30 14:10:12 -04:00
parent dd71aa0c6e
commit 03b6964d7c

View File

@ -17,4 +17,4 @@ data Syntax
| Fixed [f]
-- | A branch of child nodes indexed by some String identity. This is useful for identifying e.g. methods & properties in a class scope by their names. Note that comments can generally occur in these scopes as well; one strategy for dealing with this is to identify comments by their text in the source.
| Keyed (OrderedMap T.Text f)
deriving (Eq, Foldable, Functor, Ord, Show, Traversable)
deriving (Eq, Foldable, Functor, Generic, Ord, Show, Traversable)