src/HOL/Tools/refute.ML
changeset 40720 b770df486e5c
parent 40627 becf5d5187cc
child 41471 54a58904a598
--- a/src/HOL/Tools/refute.ML	Fri Nov 26 21:09:36 2010 +0100
+++ b/src/HOL/Tools/refute.ML	Fri Nov 26 21:31:46 2010 +0100
@@ -2953,9 +2953,7 @@
 fun stlc_printer ctxt model T intr assignment =
   let
     (* string -> string *)
-    fun strip_leading_quote s =
-      (implode o (fn [] => [] | x::xs => if x="'" then xs else x::xs)
-        o raw_explode) s  (* FIXME Symbol.explode (?) *)
+    val strip_leading_quote = perhaps (try (unprefix "'"))
     (* Term.typ -> string *)
     fun string_of_typ (Type (s, _)) = s
       | string_of_typ (TFree (x, _)) = strip_leading_quote x