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 559704af7c82463d3
parent 55969 368c70ee1f46
child 55971 33a68b7f2736
no ord instance for String.literal in Haskell when list is also ordered lexicographically
src/HOL/Library/List_lexord.thy
     1.1 --- a/src/HOL/Library/List_lexord.thy	Wed Nov 20 11:59:33 2013 +0100
     1.2 +++ b/src/HOL/Library/List_lexord.thy	Wed Nov 20 12:11:12 2013 +0100
     1.3 @@ -118,4 +118,6 @@
     1.4    "(x\<Colon>'a\<Colon>{equal, order}) # xs \<le> y # ys \<longleftrightarrow> x < y \<or> x = y \<and> xs \<le> ys"
     1.5    by simp_all
     1.6  
     1.7 +code_printing class_instance String.literal :: ord \<rightharpoonup> (Haskell) -
     1.8 +
     1.9  end