Hi,

Using frequently both Hugs 1.4 (January 1998) and GHC I've noticed
that Hugs accepts the following while GHC does not:

------------------------------
module Main where

import A

main = print (D 42)
------------------------------
------------------------------
module A (D) where

data D = D Int
         deriving Show
------------------------------

If I read the report correctly GHC is right to complain that data
constructor `D' is not in scope in Main.  Renaming the data
constructor to a name different from that of the datatype yields a
similar error in Hugs too (and this is of course resolved by exporting
`D(..)').

This is probably the most pedantic bug report ever made to hugs-bugs!

Cheers,
  Bjarte

Reply via email to