Re-order exports to clearly show monad interface.
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 25 Mar 2015 18:04:31 +0000 (14:04 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 25 Mar 2015 18:04:31 +0000 (14:04 -0400)
src/hope_option.erl
src/hope_result.erl

index 7a87438..02ef2f3 100644 (file)
@@ -7,13 +7,16 @@
     ]).
 
 -export(
-    [ put/2
-    , get/2
-    , return/1
-    , return/2
+    % Generic monad interface
+    [ return/1
     , map/2
-    , iter/2
     , pipe/2
+
+    % Specific to hope_option:t()
+    , return/2
+    , put/2
+    , get/2
+    , iter/2
     , of_result/1
     , of_undefined/1
     ]).
index 0f9fb05..9d4235b 100644 (file)
@@ -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
This page took 0.02446 seconds and 4 git commands to generate.