Hello,
say, I am not happy with the Show instances of arrays, e.g.
> import Data.Array.Unboxed
> let x = listArray ((0,0), (1,1)) [0.0 .. 3.0] :: UArray (Int,Int) Double
> x
array ((0,0),(1,1)) [((0,0),0.0),((0,1),1.0),((1,0),2.0),((1,1),3.0)]
but I would like to see something more Matlab-like as
0.000 1.000
2.000 3.000
so I wish to define my own Show instance for UArray (Int,Int) Double. How can I override the "standard" show method for UArray ? I expected something like
> import Data.Array.Unboxed hiding (show)
or
> import Data.Array.Base hiding (show)
should do, but still I get the error message
"Overlapping instances for Show (UArray (Int, Int) Double)",
obviously because my own instance declaration of Show collides with that one in Data.Array.Base. How can I deactivate the latter?
Regards Johannes