Skip to content

Commit

Permalink
Merge pull request #31 from andyarvanitis/master
Browse files Browse the repository at this point in the history
Export unsafeCompare
  • Loading branch information
paf31 committed Jul 26, 2015
2 parents 353e7b1 + 8c89c29 commit 8d6cd04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit 8d6cd04

Please sign in to comment.