The present disclosure provides phosphatidylinositol 3-kinase (PI3K) inhibitors of formula (I),or pharmaceutically acceptable salts or isomers thereof, in which n, m, R1, R2, R4, and R3 are as defined herein. These compounds are useful for treatment of conditions mediated by one or more PI3K isoforms, such as PI3Kδ. The present disclosure further provides pharmaceutical compositions that include a compound of formula (I), or pharmaceutically acceptable salts or isomers thereof, and methods of using these compounds and compositions to treat conditions mediated by one or more PI3K isoforms, such as PI3Kδ.本發明提供化學式(I)之磷脂酸肌醇3-激酶(PI3K)抑制劑或其藥學上可接受之鹽類或異構物,其中n、m、R1、R2、R4、和R3為如文中所定義者。這些化合物可用於治療經由一或多種PI3K同功異構體(isoform)如PI3Kδ所調介之病況。本發明另外提供藥學組成物,其包含化學式(I)之化合物、或其藥學上可接受之鹽類或異構物,和使用這些化合物和組成物治療經由一或多種PI3K同功異構體如PI3Kδ所調介之病況的方法。