no ord instance for String.literal in Haskell when list is also ordered lexicographically
authorAndreas Lochbihler
Wed, 20 Nov 2013 12:11:12 +0100
changeset 54597 4af7c82463d3
parent 54596 368c70ee1f46
child 54598 33a68b7f2736
no ord instance for String.literal in Haskell when list is also ordered lexicographically
src/HOL/Library/List_lexord.thy
--- a/src/HOL/Library/List_lexord.thy	Wed Nov 20 11:59:33 2013 +0100
+++ b/src/HOL/Library/List_lexord.thy	Wed Nov 20 12:11:12 2013 +0100
@@ -118,4 +118,6 @@
   "(x\<Colon>'a\<Colon>{equal, order}) # xs \<le> y # ys \<longleftrightarrow> x < y \<or> x = y \<and> xs \<le> ys"
   by simp_all
 
+code_printing class_instance String.literal :: ord \<rightharpoonup> (Haskell) -
+
 end