1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Derive an Ord instance for Syntax.

This commit is contained in:
Rob Rix 2016-06-29 11:23:11 -04:00
parent 4c3c85bf87
commit 7bdbb0a963

View File

@ -17,4 +17,4 @@ data Syntax
| Fixed [f] | 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. -- | 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) | Keyed (OrderedMap T.Text f)
deriving (Functor, Show, Eq, Foldable, Traversable) deriving (Eq, Foldable, Functor, Ord, Show, Traversable)