on master help sign in
Merge pull request #621 from sol/master

Add Ord instance for JSONPathElement

commit8e9ba8a47de89fff061fb4df110627eca8ba2676 authorAdam Bergmark <adam@bergmark.nl> dateThu 1 Feb 2018, 01:50 (9 years ago) parentafd367360937f9
1 file changed+1−1
Data/Aeson/Types/Internal.hs+1−1
Data/Aeson/Types/Internal.hs+1−1
@@ -114,7 +114,7 @@ data JSONPathElement = Key Text
114114 | Index {-# UNPACK #-} !Int
115115 -- ^ JSON path element of an index into an
116116 -- array, \"array[index]\".
117− deriving (Eq, Show, Typeable)
117+ deriving (Eq, Show, Typeable, Ord)
118118type JSONPath = [JSONPathElement]
119119
120120-- | The internal result of running a 'Parser'.