0
I have a job at the facu and I have this mistake:
'decide' is not a (Visible) method of class `Char'
to the code below:
data Paridade = Par | Impar deriving Show
class ParImpar a where
decide :: a -> Paridade
instance ParImpar a => (Char [a]) where
decide [a]
| length [a] mod 2 == 0 = Par
| otherwise = Impar