Seol mar théacs é seo: The Hasse principle and the Brauer-Manin obstruction for curves