Skip to content

Commit 32db5d4

Browse files
committed
Data.ByteString.Short: import members of class Eq and class Ord explicitly
This is in case someone in future actually implements "The Eq of no (/=)" proposal (haskell/core-libraries-committee#3), which will make `Eq(..)` not to import `(/=)`. I'm not aware of any proposals to change the composition of `Ord(..)` at the moment, but it feels more consistent to make it explicit too.
1 parent da6f41a commit 32db5d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Data/ByteString/Short/Internal.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ import GHC.Stack.Types
229229
( HasCallStack )
230230
import GHC.Word
231231
import Prelude
232-
( Eq(..), Ord(..), Ordering(..), Read(..), Show(..)
232+
( Eq, (==), (/=)
233+
, Ord, compare, (<), (<=), (>), (>=), min, max
234+
, Ordering(..), Read(..), Show(..)
233235
, ($), ($!), error, (++), (.), (||)
234236
, String, userError
235237
, Bool(..), (&&), otherwise

0 commit comments

Comments
 (0)