Provided herein are compounds, pharmaceutical compositions comprising such compounds and methods of using such compounds to treat or prevent diseases or disorders associated with HDAC activity, particularly diseases or disorders that involve activity of HDAC1 and/or HDAC2. Such diseases include cancer, sickle-cell anemia, beta-thalassemia, and HIV.