Commit c0870eb
committed
Make nothing :: Maybe a, remove extra parameter
`nothing` is only used in one place, and as a function it was called
incorrectly before: `nothing()` instead of `nothing(undefined)`.
This commit fixes that by removing the extra layer of function wrapping
entirely, and making `nothing` a constant of type `Maybe a`. This is to
avoid the more verbose alternative - adding the `undefined` argument.1 parent 1e5e256 commit c0870eb
3 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
| 582 | + | |
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| |||
0 commit comments