From: Siraaj Khandkar Date: Tue, 15 Jul 2014 00:28:38 +0000 (-0400) Subject: Change to a more consistent alignment style. X-Git-Tag: 1.0.0~33 X-Git-Url: https://git.xandkar.net/?p=hope.git;a=commitdiff_plain;h=3b156801097bcd07272f1db3a62a675495fa9d77 Change to a more consistent alignment style. --- 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) -> diff --git a/src/hope_result.erl b/src/hope_result.erl index 405f2e0..06f1eeb 100644 --- a/src/hope_result.erl +++ b/src/hope_result.erl @@ -1,13 +1,18 @@ -module(hope_result). --export_type([ t/2 - ]). +-export_type( + [ t/2 + ]). --export([ pipe/2 - ]). +-export( + [ pipe/2 + ]). --type t(A, B) :: {ok, A} | {error, B}. +-type t(A, B) :: + {ok, A} + | {error, B} + . pipe([] , X) -> X;