File tree 3 files changed +10
-0
lines changed
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Notable changes to this project are documented in this file. The format is based
7
7
Breaking changes:
8
8
9
9
New features:
10
+ - Added ` Eq1 ` and ` Ord1 ` instances to ` NonEmptyList ` and ` LazyNonEmptyList ` (#188 )
10
11
11
12
Bugfixes:
12
13
Original file line number Diff line number Diff line change @@ -211,6 +211,12 @@ derive instance newtypeNonEmptyList :: Newtype (NonEmptyList a) _
211
211
derive newtype instance eqNonEmptyList :: Eq a => Eq (NonEmptyList a )
212
212
derive newtype instance ordNonEmptyList :: Ord a => Ord (NonEmptyList a )
213
213
214
+ instance eq1NonEmptyList :: Eq1 NonEmptyList where
215
+ eq1 (NonEmptyList lhs) (NonEmptyList rhs) = eq1 lhs rhs
216
+
217
+ instance ord1NonEmptyList :: Ord1 NonEmptyList where
218
+ compare1 (NonEmptyList lhs) (NonEmptyList rhs) = compare1 lhs rhs
219
+
214
220
instance showNonEmptyList :: Show a => Show (NonEmptyList a ) where
215
221
show (NonEmptyList nel) = " (NonEmptyList " <> show nel <> " )"
216
222
Original file line number Diff line number Diff line change @@ -202,6 +202,9 @@ derive instance newtypeNonEmptyList :: Newtype (NonEmptyList a) _
202
202
derive newtype instance eqNonEmptyList :: Eq a => Eq (NonEmptyList a )
203
203
derive newtype instance ordNonEmptyList :: Ord a => Ord (NonEmptyList a )
204
204
205
+ derive newtype instance eq1NonEmptyList :: Eq1 NonEmptyList
206
+ derive newtype instance ord1NonEmptyList :: Ord1 NonEmptyList
207
+
205
208
instance showNonEmptyList :: Show a => Show (NonEmptyList a ) where
206
209
show (NonEmptyList nel) = " (NonEmptyList " <> show nel <> " )"
207
210
You can’t perform that action at this time.
0 commit comments