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:
parent
bd11e9e0ee
commit
4c3c85bf87
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user