A compound of formula (I): ##STR1## wherein R.sup.1 represents a group of formula (A) or (B): ##STR2## R.sup.2, R.sup.3, Ar, Y Ar.sup.1 are as defined herein; or a pharmaceutically acceptable salt thereof, which has activity at dopamine receptor and is useful in the treatment of psychoses