src/HOL/Library/Code_Natural.thy
changeset 38774 567b94f8bb6e
parent 38771 f9cd27cbe8a4
child 38775 741ca0c98f6f
     1.1 --- a/src/HOL/Library/Code_Natural.thy	Thu Aug 26 12:19:49 2010 +0200
     1.2 +++ b/src/HOL/Library/Code_Natural.thy	Thu Aug 26 12:19:50 2010 +0200
     1.3 @@ -9,9 +9,7 @@
     1.4  section {* Alternative representation of @{typ code_numeral} for @{text Haskell} and @{text Scala} *}
     1.5  
     1.6  code_include Haskell "Natural"
     1.7 -{*import Data.Array.ST;
     1.8 -
     1.9 -newtype Natural = Natural Integer deriving (Eq, Show, Read);
    1.10 +{*newtype Natural = Natural Integer deriving (Eq, Show, Read);
    1.11  
    1.12  instance Num Natural where {
    1.13    fromInteger k = Natural (if k >= 0 then k else 0);
    1.14 @@ -54,8 +52,8 @@
    1.15  
    1.16  code_reserved Haskell Natural
    1.17  
    1.18 -code_include Scala "Natural" {*
    1.19 -import scala.Math
    1.20 +code_include Scala "Natural"
    1.21 +{*import scala.Math
    1.22  
    1.23  object Nat {
    1.24