Skip to content

Commit

Permalink
Merge pull request #17 from ayberkt/develop
Browse files Browse the repository at this point in the history
Avoid non-exhaustive matching (and thus warnings)
  • Loading branch information
ayberkt authored Jul 10, 2017
2 parents 1682b91 + bc3c369 commit 64523fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/flags.sml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ structure Flags : FLAGS = struct
fun parseArgs [] = ()
| parseArgs ("--latex"::rest) =
(flgShouldGenLaTeX := true; parseArgs rest)
| parseArgs ("--steps"::rest) = parseArgs rest
| parseArgs ("--out"::file::rest) =
(flgOutFile := SOME file; parseArgs rest)
| parseArgs (arg::_) =
(print ("Unrecognized argument: " ^ arg ^ "\n");
OS.Process.exit OS.Process.failure)
end
1 change: 1 addition & 0 deletions src/ljt.sml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ structure LJT = struct
OneInf (DisjR2, breakdown (G || [] ===> B), goal))
end
| breakdown (G || [] ===> C) = searchSync G C
| breakdown _ = raise Fail "breakdown case not supposed to happen"

and searchSync G C =
case getSome (eliminate C) (allCtxs G) of
Expand Down

0 comments on commit 64523fa

Please sign in to comment.