This invention comprises the novel compounds of formula (I) wherein R1, T, X, Y, A, n, m and p have defined meanings, having histone deacetylase inhibiting enzymatic activity; their preparation, compositions containing them and their use as a medicine.