X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fhope_option.erl;fp=src%2Fhope_option.erl;h=92636c9f7191689526783806cbf85c0e9a7599fb;hb=3b156801097bcd07272f1db3a62a675495fa9d77;hp=ad0adacd6831640ff5581a1e38f83c8324a135e2;hpb=4ecf3dea2b2fb10921914c92fef109113d5124a2;p=hope.git diff --git a/src/hope_option.erl b/src/hope_option.erl index ad0adac..92636c9 100644 --- a/src/hope_option.erl +++ b/src/hope_option.erl @@ -1,15 +1,20 @@ -module(hope_option). --export_type([ t/1 - ]). +-export_type( + [ t/1 + ]). --export([ put/2 - , get/2 - , map/2 - ]). +-export( + [ put/2 + , get/2 + , map/2 + ]). --type t(A) :: none | {some, A}. +-type t(A) :: + none + | {some, A} + . put(X, F) ->