src/HOL/Tools/datatype_case.ML
changeset 26931 aa226d8405a8
parent 24920 2a45e400fdad
child 29266 4a478f9d2847
equal deleted inserted replaced
26930:64e50d783276 26931:aa226d8405a8
   289     val originals = map (row_of_pat o #2) rows
   289     val originals = map (row_of_pat o #2) rows
   290     val _ = case originals \\ finals of
   290     val _ = case originals \\ finals of
   291         [] => ()
   291         [] => ()
   292       | is => (if err then case_error else warning)
   292       | is => (if err then case_error else warning)
   293           ("The following clauses are redundant (covered by preceding clauses):\n" ^
   293           ("The following clauses are redundant (covered by preceding clauses):\n" ^
   294            space_implode "\n" (map (string_of_clause o nth clauses) is));
   294            cat_lines (map (string_of_clause o nth clauses) is));
   295   in
   295   in
   296     (case_tm, patts2)
   296     (case_tm, patts2)
   297   end;
   297   end;
   298 
   298 
   299 fun make_case tab ctxt = gen_make_case
   299 fun make_case tab ctxt = gen_make_case