File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 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
77Breaking changes:
88
99New features:
10+ - Added ` Eq1 ` and ` Ord1 ` instances to ` NonEmptyList ` and ` LazyNonEmptyList ` (#188 )
1011
1112Bugfixes:
1213
Original file line number Diff line number Diff line change @@ -211,6 +211,12 @@ derive instance newtypeNonEmptyList :: Newtype (NonEmptyList a) _
211211derive newtype instance eqNonEmptyList :: Eq a => Eq (NonEmptyList a )
212212derive newtype instance ordNonEmptyList :: Ord a => Ord (NonEmptyList a )
213213
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+
214220instance showNonEmptyList :: Show a => Show (NonEmptyList a ) where
215221 show (NonEmptyList nel) = " (NonEmptyList " <> show nel <> " )"
216222
Original file line number Diff line number Diff line change @@ -202,6 +202,9 @@ derive instance newtypeNonEmptyList :: Newtype (NonEmptyList a) _
202202derive newtype instance eqNonEmptyList :: Eq a => Eq (NonEmptyList a )
203203derive newtype instance ordNonEmptyList :: Ord a => Ord (NonEmptyList a )
204204
205+ derive newtype instance eq1NonEmptyList :: Eq1 NonEmptyList
206+ derive newtype instance ord1NonEmptyList :: Ord1 NonEmptyList
207+
205208instance showNonEmptyList :: Show a => Show (NonEmptyList a ) where
206209 show (NonEmptyList nel) = " (NonEmptyList " <> show nel <> " )"
207210
You can’t perform that action at this time.
0 commit comments