The present invention provides compounds of formula I and pharmaceutically acceptable salts thereof. The formula I compounds inhibit tyrosine kinase activity of JAK2, thereby making them useful as antiproliferative agents for the treatment of cancer and other diseases.