Commit 5ceb24f
committed
Add an operator for supplying a default value to getDefaultField
This PR adds an operator for supplying a default value to
`getDefaultField` (`.??`).
This is similar to Aeson's
[`.!=`](https://www.stackage.org/haddock/lts-8.21/aeson-1.0.2.1/Data-Aeson.html#v:.-33--61-)
operator.
The fixity needs to be less than the `.??` operator so that they compose
cleanly.1 parent ca9185d commit 5ceb24f
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments