This invention provides thiophene compounds of formula I:
wherein R
1
, R
2
, R
3
, R
4
, n, p, and m are as described in the specification. The compounds are inhibitors of PI3K and are thus useful for treating proliferative, inflammatory, or cardiovascular disorders.