summaryrefslogtreecommitdiffstats
path: root/either.sml
diff options
context:
space:
mode:
Diffstat (limited to 'either.sml')
-rw-r--r--either.sml4
1 files changed, 4 insertions, 0 deletions
diff --git a/either.sml b/either.sml
new file mode 100644
index 0000000..6a63fe5
--- /dev/null
+++ b/either.sml
@@ -0,0 +1,4 @@
+structure Either =
+struct
+ datatype ('a, 'b) either = Left of 'a | Right of 'b
+end