--- a/src/HOL/Tools/inductive_codegen.ML Thu Jun 24 13:31:26 2010 +0200
+++ b/src/HOL/Tools/inductive_codegen.ML Thu Jun 24 14:19:08 2010 +0200
@@ -334,10 +334,10 @@
in
Pretty.block
([str "(fn ", mk_tuple out_ps, str " =>", Pretty.brk 1] @
- (Pretty.block ((if eqs=[] then [] else str "if " ::
+ (Pretty.block ((if null eqs then [] else str "if " ::
[Pretty.block eqs, Pretty.brk 1, str "then "]) @
(success_p ::
- (if eqs=[] then [] else [Pretty.brk 1, str "else DSeq.empty"]))) ::
+ (if null eqs then [] else [Pretty.brk 1, str "else DSeq.empty"]))) ::
(if can_fail then
[Pretty.brk 1, str "| _ => DSeq.empty)"]
else [str ")"])))