Skip to content

Commit f435d25

Browse files
committed
Import from Partial explicitly
1 parent ad69bdd commit f435d25

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)