Skip to content

Commit dba90f9

Browse files
Fix warnings revealed by v0.14.1 PS release (#262)
* Fix warnings revealed by v0.14.1 PS release * Update changelog
1 parent 3771777 commit dba90f9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ New features:
1111
Bugfixes:
1212

1313
Other improvements:
14+
- Fix warnings revealed by `v0.14.1` PS release (#262)
1415

1516
## [v5.0.0](https://github.com/purescript/purescript-prelude/releases/tag/v5.0.0) - 2021-02-26
1617

src/Data/Ord/Generic.purs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ instance genericOrdNoArguments :: GenericOrd NoArguments where
1919
instance genericOrdSum :: (GenericOrd a, GenericOrd b) => GenericOrd (Sum a b) where
2020
genericCompare' (Inl a1) (Inl a2) = genericCompare' a1 a2
2121
genericCompare' (Inr b1) (Inr b2) = genericCompare' b1 b2
22-
genericCompare' (Inl b1) (Inr b2) = LT
23-
genericCompare' (Inr b1) (Inl b2) = GT
22+
genericCompare' (Inl _) (Inr _) = LT
23+
genericCompare' (Inr _) (Inl _) = GT
2424

2525
instance genericOrdProduct :: (GenericOrd a, GenericOrd b) => GenericOrd (Product a b) where
2626
genericCompare' (Product a1 b1) (Product a2 b2) =

0 commit comments

Comments
 (0)