src/HOL/Library/Efficient_Nat.thy
changeset 38774 567b94f8bb6e
parent 38771 f9cd27cbe8a4
child 38857 97775f3e8722
     1.1 --- a/src/HOL/Library/Efficient_Nat.thy	Thu Aug 26 12:19:49 2010 +0200
     1.2 +++ b/src/HOL/Library/Efficient_Nat.thy	Thu Aug 26 12:19:50 2010 +0200
     1.3 @@ -242,8 +242,8 @@
     1.4    and @{typ int}.
     1.5  *}
     1.6  
     1.7 -code_include Haskell "Nat" {*
     1.8 -newtype Nat = Nat Integer deriving (Eq, Show, Read);
     1.9 +code_include Haskell "Nat"
    1.10 +{*newtype Nat = Nat Integer deriving (Eq, Show, Read);
    1.11  
    1.12  instance Num Nat where {
    1.13    fromInteger k = Nat (if k >= 0 then k else 0);
    1.14 @@ -280,8 +280,8 @@
    1.15  
    1.16  code_reserved Haskell Nat
    1.17  
    1.18 -code_include Scala "Nat" {*
    1.19 -import scala.Math
    1.20 +code_include Scala "Nat"
    1.21 +{*import scala.Math
    1.22  
    1.23  object Nat {
    1.24