(head.group) "1234"
It work.
head.group "1234"
I get errors:
<interactive>:8:6:
Couldn't match expected type `a0 -> [c0]'
with actual type `[[Char]]'
In the return type of a call of `group'
Probable cause: `group' is applied to too many arguments
In the second argument of `(.)', namely `group "1234"'
In the expression: head . group "1234"
I think (head.group) is same as head.group, why (head.group) work and head.group not.