From b632667ce57af89691407bb8668e1512775278ae Mon Sep 17 00:00:00 2001 From: Calvin Date: Fri, 15 Mar 2013 15:26:20 -0400 Subject: nbc added --- src/nbc/fail.sml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/nbc/fail.sml (limited to 'src/nbc/fail.sml') diff --git a/src/nbc/fail.sml b/src/nbc/fail.sml new file mode 100644 index 0000000..f3d324c --- /dev/null +++ b/src/nbc/fail.sml @@ -0,0 +1,10 @@ +signature FAIL = sig + val fail: string -> 'a +end + +structure Fail :> FAIL = struct + fun fail why = ( + TextIO.output (TextIO.stdErr, why ^ "\n") + ; OS.Process.exit OS.Process.failure + ) +end -- cgit v1.2.3