Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/Prelude.md
Original file line number Diff line number Diff line change
Expand Up @@ -975,4 +975,9 @@ instance showArray :: (Show a) => Show (Array a)
instance showOrdering :: Show Ordering
```

#### `unsafeCompare`

``` purescript
unsafeCompare :: forall a. a -> a -> Ordering
```
The `unsafeCompare` function is mainly intended for module writers supporting native types via the FFI, and not for general comparisons.
1 change: 1 addition & 0 deletions src/Prelude.purs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module Prelude
, DivisionRing
, Eq, eq, (==), (/=)
, Ordering(..), Ord, compare, (<), (>), (<=), (>=)
, unsafeCompare
, Bounded, top, bottom
, BoundedOrd
, BooleanAlgebra, conj, disj, not, (&&), (||)
Expand Down