Damn. Is there anything you can do? If that grade is something important maybe you can talk to the head of your year or whoever and say you don't think you deserved it. Did she mark your paper harshly (in which case you have proof you did ok), or did she just dish out the fail with no justification/coursework etc (in which case you can argue she's not in the position to give you the fail)