ref: e29ec974f6737e8c51d8fd0fea306c1fa6c0ece0
parent: de38fba80d0e8ee4b95c4e2ee8cd89d5b114a4ba
author: Ori Bernstein <[email protected]>
date: Mon Jun 2 10:46:15 EDT 2014
Remove 'error.myr' No point in keeping deprecated API. Out.
--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -10,7 +10,6 @@
die.myr \
endian.myr \
env.myr \
- error.myr \
execvp.myr \
extremum.myr \
floatbits.myr \
--- a/libstd/error.myr
+++ /dev/null
@@ -1,9 +1,0 @@
-use "die.use"
-
-pkg std =
- type error(@a, @b) = union
- `Success @a
- `Failure @b
- ;;
-;;
-
--- a/test/catfile.myr
+++ b/test/catfile.myr
@@ -6,8 +6,8 @@
r = std.slurp("data/catfile-in")
match r
- | `std.Success dat: std.write(1, dat)
- | `std.Failure msg: std.put("Failed to read file: %s\n", msg)
+ | `std.Ok dat: std.write(1, dat)
+ | `std.Fail msg: std.put("Failed to read file: %s\n", msg)
;;
-> 0
}