On 15-May-2000, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote:
> Mon, 15 May 2000 08:53:21 +0400 (MSD), S.D.Mechveliani <[EMAIL PROTECTED]> pisze:
>
> > I expect, it would not be good to repeat the definitions of
> > data Maybe, data Bool
> > in MyPrelude.
>
> 1. import qualified Prelude
> import Prelude (Bool(..), Maybe(..), etc.)
>
> 2. import Prelude hiding (Num(..), Integral(..), etc.)
Both of these solutions require more work from the user of the
alternative Prelude. The approach that I suggested, namely
re-exporting Bool(..) and Maybe(..) from the alternative prelude,
is better because the extra work is done by the implementor of the
alternative prelude, which means it only needs to be done once, rather
than once for every time you use the alternative prelude.
--
Fergus Henderson <[EMAIL PROTECTED]> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger [EMAIL PROTECTED] | -- the last words of T. S. Garp.