Hayley was previously in a psychiatric hospital.She said "four out of five doctors agree I am, in fact, insane." This was played to be a joke, but she was serious. she was evaluated by five doctors. Four said she was dangerously insane, the fifth, though, managed to sweet-talk a judge into releasing her.
- The fifth one tried to exact sexual favors from her in exchange for a favorable judgment. A coupla days afterwards, he wound up dead, Driven to Suicide .
Hayley is actually a relative of Dexter Morgan's.Her past and even her real identity are left ambiguous in the film. "Hayley" may either be Dexter's stepdaughter Astor or his now grown-up daughter Lily Anne from the novels. Or some other kid entirely that he had with another woman. Like her father, she is a sociopath with an urge to kill who abides by a code—probably instilled in her by Dexter himself—where she targets certain people (in her case, pedophiles/hebephiles, rapists and murderers) and follows a ritual when killing them so that she won't be incriminated (which for her would be mind-raping her victims until they are Driven to Suicide).
Hayley isn't a real person, but is rather an avenging spirit/angel/supernatural being, acting as a patron saint of molested children who punishes paedophiles.This may be a bit of a stretch, but it makes a lot of sense. Hayley has an unnatural amount of knowledge and skill for her age, and seems to have the maturity to deal with any situation- not something a teengager would have. She seems to have an almost omnipotent knowledge of what Jeff's neighbours are doing. She admits that she has already hunted down one paedophile, and it is implied that she has hunted down more. At the end of the film, it is revealed that nothing we know about her is true, not even her name, which begs the question...who is she? The idea that a child with a home and parents could pull something like this off is ridiculous. However, if she is more of a manifestation of vengeance itself, it makes sense that she just makes up whatever identity is convenient and has no home/life. There is also her line at the end of the film, when asked who she is Hayley responds "I am every little girl that you ever watched, touched, hurt, screwed, killed.", which could be taken literally. And lastly, the lyrics of the song at the end of the film consist of somebody begging an angel to be merciful - the protagonist of the song could be Jeff and the angel in question could be Hayley.