File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,14 @@ tail (_ :| xs) = xs
70
70
instance showNonEmpty :: (Show a , Show (f a )) => Show (NonEmpty f a ) where
71
71
show (a :| fa) = " (NonEmpty " <> show a <> " " <> show fa <> " )"
72
72
73
- derive instance eqNonEmpty :: (Eq a , Eq (f a )) => Eq (NonEmpty f a )
73
+ instance eqNonEmpty :: (Eq1 f , Eq a ) => Eq (NonEmpty f a ) where
74
+ eq = eq1
74
75
75
76
instance eq1NonEmpty :: Eq1 f => Eq1 (NonEmpty f ) where
76
77
eq1 (NonEmpty a fa) (NonEmpty b fb) = a == b && fa `eq1` fb
77
78
78
- derive instance ordNonEmpty :: (Ord a , Ord (f a )) => Ord (NonEmpty f a )
79
+ instance ordNonEmpty :: (Ord1 f , Ord a ) => Ord (NonEmpty f a ) where
80
+ compare = compare1
79
81
80
82
instance ord1NonEmpty :: Ord1 f => Ord1 (NonEmpty f ) where
81
83
compare1 (NonEmpty a fa) (NonEmpty b fb) =
You can’t perform that action at this time.
0 commit comments