Princes, prelates and poets in medieval Ireland