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
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ script:
after_success:
- >-
test $TRAVIS_TAG &&
psc-publish > .pursuit.json &&
curl -X POST http://pursuit.purescript.org/packages \
-d @.pursuit.json \
-H 'Accept: application/json' \
-H "Authorization: token ${GITHUB_TOKEN}"
echo $GITHUB_TOKEN | pulp login &&
echo y | pulp publish --no-push
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "purescript-partial",
"homepage": "https://github.com/purescript/purescript-partial",
"description": "Mutable value references",
"description": "Utilities for working with partial functions",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
6 changes: 4 additions & 2 deletions src/Partial/Unsafe.purs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
-- | Utilities for working with partial functions.
module Partial.Unsafe
module Partial.Unsafe
( unsafePartial
, unsafeCrashWith
) where

import Partial (crashWith)

-- | Discharge a partiality constraint, unsafely.
foreign import unsafePartial :: forall a. (Partial => a) -> a

-- | A function which crashes with the specified error message.
unsafeCrashWith :: forall a. String -> a
unsafeCrashWith msg = unsafePartial (Partial.crashWith msg)
unsafeCrashWith msg = unsafePartial (crashWith msg)