We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 088e13b + b5f604c commit 6e2e2e6Copy full SHA for 6e2e2e6
README.md
@@ -38,4 +38,11 @@
38
39
isNothing :: forall a. Maybe a -> Prim.Boolean
40
41
- maybe :: forall a b. b -> (a -> b) -> Maybe a -> b
+ maybe :: forall a b. b -> (a -> b) -> Maybe a -> b
42
+
43
44
+## Module Data.Maybe.Unsafe
45
46
+### Values
47
48
+ fromJust :: forall a. Maybe a -> a
src/Data/Maybe/Unsafe.purs
@@ -0,0 +1,6 @@
1
+module Data.Maybe.Unsafe where
2
3
+import Data.Maybe
4
5
+fromJust :: forall a. Maybe a -> a
6
+fromJust (Just x) = x
0 commit comments