Skip to content

Commit e3253fc

Browse files
Ericson2314treeowl
authored andcommitted
Add Ord (Tree a) instance.
I assume this is an oversight because we do have `Ord1 Tree`. Some of you may be interested in knowing that I caught this due to trying out the the changes discusssed in the thread that began in https://mail.haskell.org/pipermail/libraries/2020-March/030306.html.
1 parent fd8cf8a commit e3253fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

containers/src/Data/Tree.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,15 @@ data Tree a = Node {
9797
}
9898
#ifdef __GLASGOW_HASKELL__
9999
deriving ( Eq
100+
, Ord -- ^ @since 0.6.5
100101
, Read
101102
, Show
102103
, Data
103104
, Generic -- ^ @since 0.5.8
104105
, Generic1 -- ^ @since 0.5.8
105106
)
106107
#else
107-
deriving (Eq, Read, Show)
108+
deriving (Eq, Ord, Read, Show)
108109
#endif
109110

110111
-- | This type synonym exists primarily for historical

0 commit comments

Comments
 (0)