X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fhope_result.erl;fp=src%2Fhope_result.erl;h=9d4235be1001d1d388c03305bd16749d5a4937bf;hb=1c003d17c239bc4a83368139fc52371831c3a28d;hp=0f9fb05b4dbaf405d5d81cb8359f47527c2c8248;hpb=fd4da0e0037ecf1f8b77b08d439fef0301e8a871;p=hope.git diff --git a/src/hope_result.erl b/src/hope_result.erl index 0f9fb05..9d4235b 100644 --- a/src/hope_result.erl +++ b/src/hope_result.erl @@ -9,12 +9,15 @@ ]). -export( + % Generic monad interface [ return/1 - , map/2 % map/2 is alias for map_ok/2 + , map/2 % map/2 is alias for map_ok/2 + , pipe/2 + + % Specific to hope_result:t() , map_ok/2 , map_error/2 , tag_error/2 - , pipe/2 , lift_exn/1 , lift_exn/2 , lift_map_exn/3