# HG changeset patch # User haftmann # Date 1283438501 -7200 # Node ID 5f9692dd621f91b7110a7a3c54099dd1e763893b # Parent 9eb380ecf1550de908e22920ccda1c61232b0a90 adapted to change eq -> equal diff -r 9eb380ecf155 -r 5f9692dd621f doc-src/Codegen/Thy/Adaptation.thy --- a/doc-src/Codegen/Thy/Adaptation.thy Thu Sep 02 16:14:13 2010 +0200 +++ b/doc-src/Codegen/Thy/Adaptation.thy Thu Sep 02 16:41:41 2010 +0200 @@ -272,12 +272,12 @@ text {* For convenience, the default @{text HOL} setup for @{text Haskell} - maps the @{class eq} class to its counterpart in @{text Haskell}, - giving custom serialisations for the class @{class eq} (by command - @{command_def code_class}) and its operation @{const HOL.eq} + maps the @{class equal} class to its counterpart in @{text Haskell}, + giving custom serialisations for the class @{class equal} (by command + @{command_def code_class}) and its operation @{const HOL.equal} *} -code_class %quotett eq +code_class %quotett equal (Haskell "Eq") code_const %quotett "op =" @@ -285,19 +285,19 @@ text {* \noindent A problem now occurs whenever a type which is an instance - of @{class eq} in @{text HOL} is mapped on a @{text + of @{class equal} in @{text HOL} is mapped on a @{text Haskell}-built-in type which is also an instance of @{text Haskell} @{text Eq}: *} typedecl %quote bar -instantiation %quote bar :: eq +instantiation %quote bar :: equal begin -definition %quote "eq_class.eq (x\bar) y \ x = y" +definition %quote "HOL.equal (x\bar) y \ x = y" -instance %quote by default (simp add: eq_bar_def) +instance %quote by default (simp add: equal_bar_def) end %quote (*<*) @@ -310,7 +310,7 @@ suppress this additional instance, use @{command_def "code_instance"}: *} -code_instance %quotett bar :: eq +code_instance %quotett bar :: equal (Haskell -)