The purpose of the present invention is to provide a compound that can be useful for prevention of, or therapy for, constipation and the like. The present invention provides: a compound represented by formula (I) (refer to the description for the meanings of the symbols in the formula); or a salt thereof.