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.
2 parents 1e65d7c + 31e140c commit 6182e6bCopy full SHA for 6182e6b
src/Data/Maybe.purs
@@ -49,7 +49,7 @@ maybe' _ f (Just a) = f a
49
-- | fromMaybe x (Just y) == y
50
-- | ```
51
fromMaybe :: forall a. a -> Maybe a -> a
52
-fromMaybe a = maybe a (id :: forall a. a -> a)
+fromMaybe a = maybe a id
53
54
-- | Similar to `fromMaybe` but for use in cases where the default value may be
55
-- | expensive to compute. As PureScript is not lazy, the standard `fromMaybe`
@@ -61,7 +61,7 @@ fromMaybe a = maybe a (id :: forall a. a -> a)
61
-- | fromMaybe' (\_ -> x) (Just y) == y
62
63
fromMaybe' :: forall a. (Unit -> a) -> Maybe a -> a
64
-fromMaybe' a = maybe' a (id :: forall a. a -> a)
+fromMaybe' a = maybe' a id
65
66
-- | Returns `true` when the `Maybe` value was constructed with `Just`.
67
isJust :: forall a. Maybe a -> Boolean
0 commit comments