This invention provides compounds of formula IB: wherein HY, R1, R2, R3, R15, G5, G6, G7, G8, and G9 are as described in the specification. The compounds are inhibitors of VPS34 and/or PI3K and are thus useful for treating proliferative, inflammatory, or cardiovascular disorders.