Skip to content

Commit c3d34c9

Browse files
committed
Merge pull request #4 from purescript/explicit-import
Import from Partial explicitly
2 parents ad69bdd + 527451e commit c3d34c9

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@ script:
1717
after_success:
1818
- >-
1919
test $TRAVIS_TAG &&
20-
psc-publish > .pursuit.json &&
21-
curl -X POST http://pursuit.purescript.org/packages \
22-
-d @.pursuit.json \
23-
-H 'Accept: application/json' \
24-
-H "Authorization: token ${GITHUB_TOKEN}"
20+
echo $GITHUB_TOKEN | pulp login &&
21+
echo y | pulp publish --no-push

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "purescript-partial",
33
"homepage": "https://github.com/purescript/purescript-partial",
4-
"description": "Mutable value references",
4+
"description": "Utilities for working with partial functions",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

src/Partial/Unsafe.purs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
-- | Utilities for working with partial functions.
2-
module Partial.Unsafe
2+
module Partial.Unsafe
33
( unsafePartial
44
, unsafeCrashWith
55
) where
66

7+
import Partial (crashWith)
8+
79
-- | Discharge a partiality constraint, unsafely.
810
foreign import unsafePartial :: forall a. (Partial => a) -> a
911

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

0 commit comments

Comments
 (0)