We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad69bdd commit f435d25Copy full SHA for f435d25
src/Partial/Unsafe.purs
@@ -1,12 +1,14 @@
1
-- | Utilities for working with partial functions.
2
-module Partial.Unsafe
+module Partial.Unsafe
3
( unsafePartial
4
, unsafeCrashWith
5
) where
6
7
+import Partial (crashWith)
8
+
9
-- | Discharge a partiality constraint, unsafely.
10
foreign import unsafePartial :: forall a. (Partial => a) -> a
11
12
-- | A function which crashes with the specified error message.
13
unsafeCrashWith :: forall a. String -> a
-unsafeCrashWith msg = unsafePartial (Partial.crashWith msg)
14
+unsafeCrashWith msg = unsafePartial (crashWith msg)
0 commit comments