ERROR "deneme.hs":19 - Type error in function binding
*** Term :mycounter
*** Type : [Char] -> b
*** Does not match : ([a] -> [a]) -> [Char] -> b
*** Because : unification would give infinite type
I have no idea about what I'm doing wrong. Can you help me with this please?