--- a/src/HOL/Library/Code_Natural.thy Fri Aug 27 13:32:05 2010 +0200
+++ b/src/HOL/Library/Code_Natural.thy Fri Aug 27 13:55:23 2010 +0200
@@ -9,7 +9,9 @@
section {* Alternative representation of @{typ code_numeral} for @{text Haskell} and @{text Scala} *}
code_include Haskell "Natural"
-{*newtype Natural = Natural Integer deriving (Eq, Show, Read);
+{*import Data.Array.ST;
+
+newtype Natural = Natural Integer deriving (Eq, Show, Read);
instance Num Natural where {
fromInteger k = Natural (if k >= 0 then k else 0);
@@ -50,6 +52,7 @@
| otherwise = (Natural k, Natural l) where (k, l) = quotRem n m;
};*}
+
code_reserved Haskell Natural
code_include Scala "Natural"