diff --git a/README.md b/README.md index 834f16c..fc15e1a 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,9 @@ The type can be used like this: MAYBE(int, foo); +/* Alternatively, if you dont need the 'foo' synonym: + * MAYBE_TYPE(int); */ + int main(void) { Maybe(foo) maybeFoo = Just_foo(2); @@ -67,6 +70,9 @@ also means "correct"). EITHER(int, foo, char, bar); +/* Alternatively, if you dont need the 'foo' and 'bar' synonyms: + * EITHER_TYPE(int, char); */ + int main(void) { Either(foo, bar) eitherFooOrBar = Right_foo_bar('a');