If you want to use myObviouslyFakeFunction
like
map (myObviouslyFakeFunction 1 'a' "abc" 'b' 2) ["abc", "def", "ghi"]
then the type of it should be
myObviouslyFakeFunction :: Int -> Char -> String -> Char -> Integer -> String -> ResultType
Because map
needs a one-parameter function, in this case with type String -> b
(b
is a type variable, could be any valid type), as its first argument, and if myObviouslyFakeFunction
has the above type,
(myObviouslyFakeFunction 1 'a' "abc" 'b' 2)
will be a String -> ResultType
function.