We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd832da commit d84c89fCopy full SHA for d84c89f
src/Data/Ord/Unsafe.purs
@@ -1,8 +1,12 @@
1
module Data.Ord.Unsafe (unsafeCompare) where
2
3
+import Prim.TypeError (class Warn, Text)
4
import Data.Ordering (Ordering(..))
5
-unsafeCompare :: forall a. a -> a -> Ordering
6
+unsafeCompare
7
+ :: forall a.
8
+ Warn (Text "'unsafeCompare' is deprecated.")
9
+ => a -> a -> Ordering
10
unsafeCompare = unsafeCompareImpl LT EQ GT
11
12
foreign import unsafeCompareImpl
0 commit comments