« Previous | Next » 

Revision fd9f58fd

IDfd9f58fd334249d86cd4ea4b920d21d97439ea7d
Parent 2b5b0fe9
Child e1494c96

Added by Iustin Pop over 9 years ago

Introduce a TMaybe combinator

We have many cases in the code where we write TOr(TNone, a), so let's
introduce a combinator that simplifies this case.

Beside replacing the above with TMaybe(a), I did a few other parameter
fixes:

- noop change TOr(TNone, TDict) to TMaybeDict
- noop change TOr(TNone, TNonEmptyString) to TMaybeString
- OpClusterSetParams, change master netmask from any integer to a
non-negative integer

(I can move the last one to a separate patch if desired)

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences