You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pretty-printer detects which alternation branch to use based on field population - if `pid` is `Some _`, it prints the `pid` branch; if `name` is `Some _`, it prints the `name` branch.
184
+
185
+
##### Type conversions and custom parsers
186
+
- For function application you are required to pass the return type.
187
+
- If the return type is itself an application (e.g. `string list`), then you must provide a type alias.
188
+
- The type must have an associated `pp` function. (Notice, in the example, the `mode` type and its associated functions)
189
+
124
190
### Example
125
191
126
192
The following prints out times and hosts for SMTP connections to the Postfix daemon:
0 commit comments