[Haskell] discrepancy between nhc and ghc
John Meacham
john at repetae.net
Wed Dec 1 20:27:54 EST 2004
ghc:
import Random(Random(randomR)) -- good
import Random(randomR) -- good
nhc: (1.16)
import Random(Random(randomR)) -- good
import Random(randomR) -- ERROR! nhc says randomR is not found.
I was wondering whether this was intentional and which was correct? I
much much prefer the ghc behavior since it lets you export methods
without exporting the class and lets you hide the implementation detail
of whether a function is implemented as a method or normal declaration.
John
--
John Meacham - ⑆repetae.net⑆john⑈
More information about the Haskell
mailing list