Fix unused argument warning bypassing

Use head function type to check and not partially applied type.