[project @ 1999-01-23 18:03:40 by sof]
authorsof <unknown>
Sat, 23 Jan 1999 18:03:53 +0000 (18:03 +0000)
committersof <unknown>
Sat, 23 Jan 1999 18:03:53 +0000 (18:03 +0000)
h98 updates

36 files changed:
ghc/tests/rename/should_compile/Int10.hi
ghc/tests/rename/should_compile/Makefile
ghc/tests/rename/should_compile/Rn016.hi
ghc/tests/rename/should_compile/Rn017.hi
ghc/tests/rename/should_compile/rn003.hs
ghc/tests/rename/should_compile/rn005.hs
ghc/tests/rename/should_compile/rn006.hs
ghc/tests/rename/should_compile/rn006.stderr
ghc/tests/rename/should_compile/rn016.hs
ghc/tests/rename/should_compile/rn017.hs
ghc/tests/rename/should_compile/rn017.stderr
ghc/tests/rename/should_compile/rn023.hs
ghc/tests/rename/should_compile/rn024.hs
ghc/tests/rename/should_compile/timing001.hs
ghc/tests/rename/should_compile/timing002.hs
ghc/tests/rename/should_compile/timing003.hs
ghc/tests/rename/should_fail/rnfail001.stderr
ghc/tests/rename/should_fail/rnfail002.hs
ghc/tests/rename/should_fail/rnfail002.stderr
ghc/tests/rename/should_fail/rnfail003.hs
ghc/tests/rename/should_fail/rnfail003.stderr
ghc/tests/rename/should_fail/rnfail004.hs
ghc/tests/rename/should_fail/rnfail004.stderr
ghc/tests/rename/should_fail/rnfail007.hs
ghc/tests/rename/should_fail/rnfail007.stderr
ghc/tests/rename/should_fail/rnfail008.hs
ghc/tests/rename/should_fail/rnfail008.stderr
ghc/tests/rename/should_fail/rnfail009.stderr
ghc/tests/rename/should_fail/rnfail010.stderr
ghc/tests/rename/should_fail/rnfail011.stderr
ghc/tests/rename/should_fail/rnfail012.stderr
ghc/tests/rename/should_fail/rnfail013.hs
ghc/tests/rename/should_fail/rnfail013.stderr
ghc/tests/rename/should_fail/rnfail014.stderr
ghc/tests/rename/should_fail/rnfail015.hs
ghc/tests/rename/should_fail/rnfail015.stderr

index 335754f..44c3bf3 100644 (file)
@@ -1,7 +1,5 @@
-_interface_ Int10 1 400
-_exports_
-Int10 T1{C1} T2{T2C1 T2C2} T3{T3C1 T3C2 T3C3} T4{T4C1 T4C2 T4C3 T4C4} T5{T5C1 T5C2 T5C3 T5C4 T5C5} T6{T6C6} T7{T7C6 T7C7} ;
-_declarations_
+__interface Int10 1 0 where
+__export Int10 T1{C1} T2{T2C1 T2C2} T3{T3C1 T3C2 T3C3} T4{T4C1 T4C2 T4C3 T4C4} T5{T5C1 T5C2 T5C3 T5C4 T5C5} T6{T6C6} T7{T7C6 T7C7} ;
 1 data T1 a = C1 a;
 1 data T2 a b = T2C1 a | T2C2 b ;
 1 data T3 a b c = T3C1 a | T3C2 b | T3C3 c ;
index 2596f4d..fd954bb 100644 (file)
@@ -4,7 +4,7 @@ include $(TOP)/mk/should_compile.mk
 
 SRC_HC_OPTS += -noC -dcore-lint
 
-rn017_HC_OPTS = -hi
+rn017_HC_OPTS = -hi -hi-with-exports
 
 include $(TOP)/mk/target.mk
 
index fdf2ca0..30dca25 100644 (file)
@@ -1,12 +1,9 @@
-_interface_ Rn016 1 400
-_exports_
-Rn016 K{op1 op2};
-_instances_
-instance {K PrelBase.Int} = $d1;
-instance {K PrelBase.Bool} = $d2;
-instance _forall_ [a] => {K [a]} = $d3;
-_declarations_
-1 $d1 _:_ {K PrelBase.Int} ;;
-1 $d2 _:_ {K PrelBase.Bool} ;;
-1 $d3 _:_ _forall_ [a] {K PrelList.[a]} ;;
+__interface Rn016 1 0 where
+__export Rn016 K{op1 op2};
+instance {K PrelBase.Int} = _f1;
+instance {K PrelBase.Bool} = _f2;
+instance __forall [a] => {K [a]} = _f3;
+1 _f1 :: {K PrelBase.Int} ;
+1 _f2 :: {K PrelBase.Bool} ;
+1 _f3 :: __forall [a] => {K PrelList.[a]} ;
 1 class K a :: (* -> *) where { op1 :: a -> a ; op2 :: a -> a } ;
index b618774..8f85dbb 100644 (file)
@@ -1,9 +1,7 @@
-_interface_ Rn017 1 400
-_exports_
-Rn017 a b c Wibble{MkWibble} Wobble ;
-_declarations_
+__interface Rn017 1 0 where
+__export Rn017 a b c Wibble{MkWibble} Wobble ;
 1 data Wibble = MkWibble Wobble ;
 1 data Wobble ;
-1 a _:_ Int -> Int ;;
-1 b _:_ Int -> Int ;;
-1 c _:_ Int -> Int ;;
+1 a :: Int -> Int ;
+1 b :: Int -> Int ;
+1 c :: Int -> Int ;
index 493cfa2..bb22583 100644 (file)
@@ -2,7 +2,7 @@ module Foo (f) where
 -- export food
 f x = x
 
---!!! weird patterns with no variables
+-- !!! weird patterns with no variables
 1  = f 1
 [] = f []
 1  = f (f 1)
index f1df424..623bd78 100644 (file)
@@ -1,4 +1,4 @@
---!!! rn005: simplest case: a few non-recursive bindings
+-- !!! rn005: simplest case: a few non-recursive bindings
 
 module Test where
 
index 6524bba..4f4c0a4 100644 (file)
@@ -1,6 +1,6 @@
---!!! rn006: two sets of mutually-recursive blobs:
---!!!  f, g, h are mut rec
---!!!  i, j, k are mut rec
+-- !!! rn006: two sets of mutually-recursive blobs:
+-- !!!  f, g, h are mut rec
+-- !!!  i, j, k are mut rec
 
 module Test where
 
index a1c1290..618880e 100644 (file)
@@ -1,4 +1,4 @@
---!!! Import an interface defining a class and some instances
+-- !!! Import an interface defining a class and some instances
 
 module Main where
 
index 1a3c2d0..6694f24 100644 (file)
@@ -1,4 +1,4 @@
---!! Rexporting
+-- !! Rexporting
 module Test ( module Test , module Rn017 ) where
 
 import Rn017
index 6a7ad69..97e1a59 100644 (file)
@@ -1,20 +1,3 @@
 ghc: module version changed to 1; reason: no old .hi file
-_interface_ Test 1 400
-_instance_modules_
-IO PrelAddr PrelArr PrelBounded PrelCCall PrelForeign PrelIOBase PrelNum PrelNumExtra PrelTup
-_usages_
-PrelBase 1 :: $dEq0 1 $dEq1 1 $dEqBool0 1 $dEqChar0 1 $dEqInt0 1 $dEqInteger0 1 $dNumInt0 1 $dShow0 1 $dShow1 1 $dShow2 1 $dShowBool0 1 $dShowChar0 1 $dShowInt0 1 $m- 1 $m/= 1 $mfromInt 1 $mshowList 1 addr2Integer 1 foldr 1 int2Integer 1 integer_0 1 integer_1 1 integer_2 1 integer_m1 1 Eq 1 Num 1 Show 1 String 1;
-PrelNum 1 :: $dNumInteger0 1 $dShowInteger0 1;
-PrelNumExtra 1 :: $dEqDouble0 1 $dNumDouble0 1 $dShowDouble0 1;
-PrelPack 1 :: packCString# 1 unpackAppendCString# 1 unpackCString# 1 unpackFoldrCString# 1 unpackNBytes# 1;
-Rn017 1 ::;
-_exports_
-Rn017 a b c Wibble{MkWibble} Wobble;
-Test f FOO{:FOO :FOO op} Foo{MkFoo};
-_instances_
-instance {FOO Foo} = $dFOOFoo0;
-_declarations_
-1 $dFOOFoo0 _:_ {FOO Foo} ;;
-1 class FOO $r3I where {op :: $r3I -> PrelBase.Int} ;
-1 data Foo = MkFoo ;
-1 f _:_ _forall_ [$a] => $a -> $a ;;
+__export Rn017 a b c Wibble{MkWibble} Wobble;
+__export Test f FOO{op} Foo{MkFoo};
index 4b533ec..3522ff0 100644 (file)
@@ -1,3 +1,3 @@
---!! This one is fine in Haskell 1.4
+-- !! This one is fine in Haskell 1.4
 --
 module Foo ( Bar(..) ) where { data Bar = Bar X; data X = Y }
index 36fd8fd..ae9cc6b 100644 (file)
@@ -1,4 +1,4 @@
---!! This is fine in Haskell 1.4
+-- !! This is fine in Haskell 1.4
 --
 module Foo ( Baz(..) ) where 
 
index ab20102..b84b341 100644 (file)
@@ -1,4 +1,4 @@
---!!! 500 defns chained together at the top-level
+-- !!! 500 defns chained together at the top-level
 module Main(main) where
 main = undefined
 a000 = a001
index db98718..f81b026 100644 (file)
@@ -1,4 +1,4 @@
---!!! 500 defns chained together with "where"s
+-- !!! 500 defns chained together with "where"s
 module Main(main) where
 
 main = undefined
index e897868..c268646 100644 (file)
@@ -1,4 +1,4 @@
---!!! 500 defns, not chained together
+-- !!! 500 defns, not chained together
 module Main(main) where
 
 main = undefined
index 92fd228..aa56cac 100644 (file)
@@ -3,3 +3,4 @@ rnfail001.hs:3: Conflicting definitions for `x' in pattern
 
 
 Compilation had errors
+
index f2648a9..ab38722 100644 (file)
@@ -1,5 +1,5 @@
---!!! rn001: super-simple set of bindings,
---!!!  incl wildcard pattern-bindings and *duplicates*
+-- !!! rn001: super-simple set of bindings,
+-- !!! incl wildcard pattern-bindings and *duplicates*
 
 x = []
 y = []
index 24a8601..4a0a131 100644 (file)
@@ -1,8 +1,9 @@
  
 rnfail002.hs:4:
-    Conflicting definitions for `y'
-       Defined at rnfail002.hs:6
-       Defined at rnfail002.hs:5
+    Multiple declarations of `y'
+       defined at rnfail002.hs:5
+       defined at rnfail002.hs:6
 
 
 Compilation had errors
+
index 51a09b6..fb62bac 100644 (file)
@@ -1,4 +1,4 @@
---!!! split definition of f (error)
+-- !!! split definition of f (error)
 f [] = []
 g x = x
 f (x:xs) = []
index 25b82c0..cd3ec69 100644 (file)
@@ -1,8 +1,9 @@
  
 rnfail003.hs:2:
-    Conflicting definitions for `f'
-       Defined at rnfail003.hs:4
-       Defined at rnfail003.hs:2
+    Multiple declarations of `f'
+       defined at rnfail003.hs:2
+       defined at rnfail003.hs:4
 
 
 Compilation had errors
+
index 3a14f48..90a97f8 100644 (file)
@@ -1,4 +1,4 @@
---!!! multiple definitions, but hidden in patterns
+-- !!! multiple definitions, but hidden in patterns
 module Foo where
 
 f x = x
index cd56751..1136eea 100644 (file)
@@ -5,3 +5,4 @@ rnfail004.hs:7: Conflicting definitions for `b' in binding group
 
 
 Compilation had errors
+
index 99254dc..272abcf 100644 (file)
@@ -1,4 +1,4 @@
---!!! Main module with no definition of main
+-- !!! Main module with no definition of main
 
 module Main where
 
index 8520347..196214a 100644 (file)
@@ -1,4 +1,4 @@
---!!! Class and instance decl
+-- !!! Class and instance decl
 
 module Test where
 
index 5c51c89..be1cc77 100644 (file)
@@ -3,3 +3,4 @@ rnfail008.hs:18: Value not in scope: `op3'
 
 
 Compilation had errors
+
index 0decea2..774e538 100644 (file)
@@ -1,8 +1,9 @@
  
 rnfail009.hs:1:
-    Conflicting definitions for `A'
-       Defined at rnfail009.hs:5
-       Defined at rnfail009.hs:3
+    Multiple declarations of `A'
+       defined at rnfail009.hs:3
+       defined at rnfail009.hs:5
 
 
 Compilation had errors
+
index 9c4cf02..d19435b 100644 (file)
@@ -1,8 +1,9 @@
  
 rnfail010.hs:2:
-    Conflicting definitions for `f'
-       Defined at rnfail010.hs:6
-       Defined at rnfail010.hs:2
+    Multiple declarations of `f'
+       defined at rnfail010.hs:2
+       defined at rnfail010.hs:6
 
 
 Compilation had errors
+
index 1b4602f..8a33a31 100644 (file)
@@ -1,8 +1,9 @@
  
 rnfail011.hs:2:
-    Conflicting definitions for `A'
-       Defined at rnfail011.hs:6
-       Defined at rnfail011.hs:2
+    Multiple declarations of `A'
+       defined at rnfail011.hs:2
+       defined at rnfail011.hs:6
 
 
 Compilation had errors
+
index d1afdd7..bee8e16 100644 (file)
@@ -1,13 +1,9 @@
  
 rnfail012.hs:2:
-    Conflicting definitions for `A'
-       Defined at rnfail012.hs:9
-       Defined at rnfail012.hs:3
-rnfail012.hs:2:
-    Conflicting definitions for `:A'
-       Defined at rnfail012.hs:9
-       Defined at rnfail012.hs:3
+    Multiple declarations of `A'
+       defined at rnfail012.hs:3
+       defined at rnfail012.hs:9
 
 
 Compilation had errors
+
index 0c78946..4d30ded 100644 (file)
@@ -1,4 +1,4 @@
---!!! Conflicting constructors from two data type decls
+-- !!! Conflicting constructors from two data type decls
 
 module Foo where
 
index 253eb6e..86c73ba 100644 (file)
@@ -1,8 +1,9 @@
  
 rnfail013.hs:3:
-    Conflicting definitions for `MkT'
-       Defined at rnfail013.hs:9
-       Defined at rnfail013.hs:7
+    Multiple declarations of `MkT'
+       defined at rnfail013.hs:7
+       defined at rnfail013.hs:9
 
 
 Compilation had errors
+
index 8e2bef9..460650a 100644 (file)
@@ -1,4 +1,16 @@
  
+rnfail014.hs:9:
+    The constraint `Eq a' does not mention any of
+       the universally quantified type variables {}
+       of the type `Eq Bool'
+    In the type signature for an instance decl
+rnfail014.hs:9:
+    The constraint `Eq a'
+       mentions type variables that do not appear in the type
+       `Eq Bool'
+    In the type signature for an instance decl
 rnfail014.hs:12:
     The constraint `Eq a' does not mention any of
        the universally quantified type variables {}
@@ -16,18 +28,7 @@ rnfail014.hs:17:
        the universally quantified type variables {}
        of the type `a -> a'
     In the type signature for `op'
-rnfail014.hs:9:
-    The constraint `Eq a' does not mention any of
-       the universally quantified type variables {}
-       of the type `Eq Bool'
-    In the type signature for an instance decl
-rnfail014.hs:9:
-    The constraint `Eq a'
-       mentions type variables that do not appear in the type
-       `Eq Bool'
-    In the type signature for an instance decl
 
 
 Compilation had errors
+
index 0852c50..20f9934 100644 (file)
@@ -1,6 +1,6 @@
 module ShouldFail where
 
---!!! duplicate constructors in datatype
+-- !!! duplicate constructors in datatype
 -- (bug report from Alex Ferguson, c. 2.06)
 
 data Token