1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 05:11:44 +03:00

Derive an Ord instance for OrderedMap.

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

View File

@ -18,7 +18,7 @@ import Prologue hiding (toList, empty)
-- | An ordered map of keys and values.
newtype OrderedMap key value = OrderedMap { toList :: [(key, value)] }
deriving (Show, Eq, Functor, Foldable, Traversable)
deriving (Eq, Foldable, Functor, Ord, Show, Traversable)
-- | Construct an ordered map from a list of pairs of keys and values.
fromList :: [(key, value)] -> OrderedMap key value