
Ah, excellent. Thanks Henk-Jan.
This works perfectly:
--------------------------------------------------------
import Prelude hiding (Either, Left, Right)
data Either a b = Left a | Right b
deriving (Show)
--------------------------------------------------------
/Roger
-----Original Message-----
From: Henk-Jan van Tuyl [mailto:hjgtuyl@chello.nl]
Sent: Tuesday, July 31, 2012 7:19 AM
To: beginners@haskell.org; Costello, Roger L.
Subject: Re: [Haskell-beginners] Is there a way to hide an existing data type so that I can use my own version?
On Tue, 31 Jul 2012 13:08:38 +0200, Costello, Roger L.
import Prelude hiding Either
That should be: import Prelude hiding (Either) Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --