Consider the following two Modules:

File A.lhs:
==============
> module A where

> data A a = MkA a
==============

File B.lhs:
==============
> module B where

> import qualified A

> type A a = A.A a    --- Problem!
==============

ghc-4.03 (current sources) complains while compiling B.lhs:

B.lhs:5: parse error on input `.'

(Renaming all the types does not make a difference.)

Both ghc-3.02 and Hugs 98 (May 1999) are happy with these modules,
and I also cannot detect anything in the Haskell98 report
justifying this rejection.


Best regards,

Wolfram


P.S.: When I call ``make tags'' from fptools/ghc/compiler,
      the output consists mostly of error messages concerning the absence
      of hsp:

cpp: output pipe has been closed
sh: /var/tmp/kahl/ghc/current/build-4.03/ghc/compiler/hsp: No such file or directory

Reply via email to