Error (typechecking) This expression has type p which should be a function type.