The invention provides certain 3,4-dihydroisoquinolin-2(1H)-yl compounds, particularly compounds of formula I, and pharmaceutical compositions thereof. The invention further provides methods of using a compound of formula I to treat cognitive impairment associated with Parkinson's disease or schizophrenia.