Re[2]: "Duplicate instance declarations"

2005-12-28 Thread Bulat Ziganshin
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

Re[2]: "Duplicate instance declarations"

2005-12-28 Thread Bulat Ziganshin
Hello Ashley, Wednesday, December 28, 2005, 1:56:51 AM, you wrote: i tried to implement your solution and failed. i will extend my original example to show you my problem: >> class BufStream h where vPutBuf :: h -> Ptr a -> Int -> IO () >> class CharStream h where vPutStr :: h -> String