Another H'98 Report query

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Thu, 31 Jan 2002 18:18:13 +0000


> disallowing all duplicates seems tricky.  is there a duplicate here:
> 
> module A (f, module M) where
> import M(f)

Yes, there is a duplicate here.  Strangely enough, hbc does not report
this as an error, even though it refuses to compile the following
very similar case:

  module A (f, module A) where
  f = id

  $ hbc -c A.hs
  Errors:
  "A.hs", line 0, [87] Duplicates in export list: f
  Compilation aborted

Regards,
    Malcolm