Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
e1ef8974
by Mike Pilgrem at 2025-05-16T16:09:14-04:00
1 changed file:
Changes:
| ... | ... | @@ -79,8 +79,8 @@ maybe :: b -> (a -> b) -> Maybe a -> b |
| 79 | 79 | maybe n _ Nothing = n
|
| 80 | 80 | maybe _ f (Just x) = f x
|
| 81 | 81 | |
| 82 | --- | The 'isJust' function returns 'True' iff its argument is of the
|
|
| 83 | --- form @Just _@.
|
|
| 82 | +-- | 'isJust' @x@ returns 'True' when @x@ is of the form @Just _@ and 'False'
|
|
| 83 | +-- otherwise.
|
|
| 84 | 84 | --
|
| 85 | 85 | -- ==== __Examples__
|
| 86 | 86 | --
|
| ... | ... | @@ -104,7 +104,7 @@ isJust :: Maybe a -> Bool |
| 104 | 104 | isJust Nothing = False
|
| 105 | 105 | isJust _ = True
|
| 106 | 106 | |
| 107 | --- | The 'isNothing' function returns 'True' iff its argument is 'Nothing'.
|
|
| 107 | +-- | 'isNothing' @x@ returns 'True' when @x@ is 'Nothing' and 'False' otherwise.
|
|
| 108 | 108 | --
|
| 109 | 109 | -- ==== __Examples__
|
| 110 | 110 | --
|