I play a bit with Haskell and I am stuck with this error using the snd function with a tuple (String, list).
snd ("Felix Felices",[("Escarabajos Machacados",52,[f1,f2]),("Ojo de Tigre Sucio",2,[f2])])
ERROR - Cannot find "show" function for:
*** Expression : snd ("Felix Felices",[("Escarabajos Machacados",52,[f1,f2]),("Ojo de Tigre Sucio",2,[f2])])
*** Of type : [([Char],Integer,[(Integer,Integer,Integer) -> (Integer,Integer,Integer)])]
The fact is that if I delete f1, f2 and f3 (they are functions), the code works just fine, it returns a list. Why is this happening, why can't I just put the function inside the second position of the tuple?
source
share