Allow extra semicolon at end of where clause
[hcoop/domtool2.git] / src / plugins / hcoop.sml
index 93d98ec..b5f6b40 100644 (file)
@@ -27,13 +27,11 @@ val dl = ErrorMsg.dummyLoc
 val _ = Env.type_one "homedir_path"
        Env.string
        (fn dir => Domain.yourPath (OS.Path.concat (Domain.homedir (), dir))
 val _ = Env.type_one "homedir_path"
        Env.string
        (fn dir => Domain.yourPath (OS.Path.concat (Domain.homedir (), dir))
-                  handle OS.Path.InvalidArc => false
-                       | OS.Path.Path => false)
+                  handle _ => false)
 
 val () = Env.registerFunction ("home",
                               fn [(EString dir, _)] => (SOME (EString (OS.Path.concat (Domain.homedir (), dir)), dl)
 
 val () = Env.registerFunction ("home",
                               fn [(EString dir, _)] => (SOME (EString (OS.Path.concat (Domain.homedir (), dir)), dl)
-                                                        handle OS.Path.InvalidArc => NONE
-                                                             | OS.Path.Path => NONE)
+                                                        handle _ => NONE)
                                | _ => NONE)
 
 end
                                | _ => NONE)
 
 end