Lily Allen has spoken for the first time over the ordeal she suffered following her miscarriage last year.

The British singer said she went for treatment in what she calls a nuthouse to cope with the pain.

The 23-year-old was in psychiatric care for three weeks after losing her baby in January last year.

I was really depressed and I'd kind of lost the plot a bit, she told U.K.'s Sunday Mirror.

It was quite a nasty time. But it was quite nice being in there. No one could get to me. No one knew I was there.

After the ordeal, she broke up with then boyfriend Ed Simons from the Chemical Brothers.

Maybe if I had stayed pregnant and had the baby then things would have worked out between me and Ed, she says. I don't know. You could drive yourself insane thinking about it.

In spite of the ordeal, she still wants to have children.

I want to take them to school and make breakfast and packed lunches, she added.