"Duplicate instance declarations"

Bulat Ziganshin bulatz at HotPOP.com
Wed Dec 28 07:36:27 EST 2005

Hello Ashley,

Wednesday, December 28, 2005, 1:56:51 AM, you wrote:

>> instance (CharStream h) => BufStream h where
>> instance (MemoryStream h) => BufStream h where

AY> Try this:

AY> class (BufStream h) => CharStream h where

AY> class (BufStream h) => MemoryStream h where

thank you, that will work, although it is not what i exactly want. in the
ideal, i want to derive from any of these 3 classes other two. but it
seems that i need to establish some ordering between them

Best regards,
 Bulat                            mailto:bulatz at HotPOP.com

More information about the Glasgow-haskell-users mailing list