added type constraints to make SML/NJ happy
authorblanchet
Thu, 18 Mar 2010 14:52:11 +0100
changeset 35832 1dac16f00cd2
parent 35831 e31ec41a551b
child 35833 7b7ae5aa396d
added type constraints to make SML/NJ happy
src/HOL/Tools/Nitpick/nitpick_mono.ML
--- a/src/HOL/Tools/Nitpick/nitpick_mono.ML	Thu Mar 18 13:59:20 2010 +0100
+++ b/src/HOL/Tools/Nitpick/nitpick_mono.ML	Thu Mar 18 14:52:11 2010 +0100
@@ -451,7 +451,7 @@
                  [M1, M2], [])
 
 (* comp_op -> mtyp -> mtyp -> constraint_set -> constraint_set *)
-fun add_mtype_comp cmp M1 M2 (lits, comps, sexps) =
+fun add_mtype_comp cmp M1 M2 ((lits, comps, sexps) : constraint_set) =
     (print_g ("*** Add " ^ string_for_mtype M1 ^ " " ^ string_for_comp_op cmp ^
               " " ^ string_for_mtype M2);
      case do_mtype_comp cmp [] M1 M2 (SOME (lits, comps)) of
@@ -500,7 +500,7 @@
     raise MTYPE ("Nitpick_Mono.do_notin_mtype_fv", [M], [])
 
 (* sign -> mtyp -> constraint_set -> constraint_set *)
-fun add_notin_mtype_fv sn M (lits, comps, sexps) =
+fun add_notin_mtype_fv sn M ((lits, comps, sexps) : constraint_set) =
     (print_g ("*** Add " ^ string_for_mtype M ^ " is " ^
               (case sn of Minus => "concrete" | Plus => "complete") ^ ".");
      case do_notin_mtype_fv sn [] M (SOME (lits, sexps)) of