The present invention relates to a compound of formula (I)or a salt thereof, wherein the substituents are as defined in the description, to compositions and use of the compounds in the treatment of diseases ameloriated by inhibition of phosphatidylinositol 3-kinase.