[Haskell-cafe] [Newbie] Cannot derive Eq and Show. Why?

2006-09-08 Thread Peter Arrenbrecht
Hi all I am stumped again. The following code generates the error "ERROR file:.\Cube.hs:12 - An instance of IArray UArray a is required to derive Eq (Cube a b)" in Hugs. But I did specify the IArray UArray k constraint. So what is wrong? module Cube( Cube(..) ) where import Data.Array.Unboxed

Re: [Haskell-cafe] [Newbie] Cannot derive Eq and Show. Why?

2006-09-09 Thread Bulat Ziganshin
Hello Peter, Friday, September 8, 2006, 6:03:36 PM, you wrote: > I am stumped again. The following code generates the error "ERROR > file:.\Cube.hs:12 - An instance of IArray UArray a is required to derive Eq > (Cube a b)" in Hugs. But I did specify the IArray UArray k constraint. So > what is wr