Yo hice algo tipo:
noPertenece:: Integer->[Integer]->Bool
noPertenece a [] = True
noPertenece a (x:xs)| a == x = False
|otherwise = noPertenece a xs
Que se fija si un elemento no pertenece a una lista, funciona joya para Integer, el problema es q quize hacerla generica y el compilador me grito. Me grito mucho.
Ideas?