I have a job on the facu and I get this error:
'decide' is not a (visible) method of class 'Char'
for 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