Skip to content

Commit 8d6cd04

Browse files
committed
Merge pull request #31 from andyarvanitis/master
Export unsafeCompare
2 parents 353e7b1 + 8c89c29 commit 8d6cd04

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/Prelude.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,4 +975,9 @@ instance showArray :: (Show a) => Show (Array a)
975975
instance showOrdering :: Show Ordering
976976
```
977977

978+
#### `unsafeCompare`
978979

980+
``` purescript
981+
unsafeCompare :: forall a. a -> a -> Ordering
982+
```
983+
The `unsafeCompare` function is mainly intended for module writers supporting native types via the FFI, and not for general comparisons.

src/Prelude.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module Prelude
2020
, DivisionRing
2121
, Eq, eq, (==), (/=)
2222
, Ordering(..), Ord, compare, (<), (>), (<=), (>=)
23+
, unsafeCompare
2324
, Bounded, top, bottom
2425
, BoundedOrd
2526
, BooleanAlgebra, conj, disj, not, (&&), (||)

0 commit comments

Comments
 (0)