I am getting this error:
- No instance for (Eq T1)
arising from the first field of
TT' (type
Matrix T1') Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself- When deriving the instance for (Eq TT) | 20 | } deriving (Eq, Ord)
and I don't know why and how I can fix this ( error is the same for Ord)
Here's my code:
import Data.Matrix
data T1 = T1 { x :: Char
, y :: Int
, z :: Int
}
instance Show T1 where
show t1 = [(x t1)]
data TT = TT { myMap :: Matrix T1
, flag :: Int
} deriving (Eq, Ord)
Any idea?