I have a function which has this type by default :
func :: Integer -> (Integer,Integer) -> [[String]] -> ([Char],[Char],[Char],[Char]) -> (Integer,Integer)
But I want it to return (Int,Int) When I wrote this :
func:: Integer -> (Integer,Integer) -> [[String]] -> ([Char],[Char],[Char],[Char]) -> (Int,Int)
I get this error : Main> :l play
ERROR "play.hs":64 - Type error in explicitly typed binding
*** Term : func
*** Type : Integer -> (Integer,Integer) -> [[String]] -> ([Char],[Char],[Char],[Char]) -> (Integer,Integer)
*** Does not match : Integer -> (Integer,Integer) -> [[String]] -> ([Char],[Char],[Char],[Char]) -> (Int,Int)
How can I fix this? Thanks.