They stop your brain from thinking, and if you can't think, you can't think of horrible things that make you unhappy.
When I was put on them, I ceased functioning. For five months, I became a zombie. I went off them, and I reverted to normal.
A similar perscription made me unable to do math tests to the same standard I usually did them. I normally got 100%. Once I went on the pills, my hands started shaking like anything, I talked and became sociable, and my math mark dropped to 93%. I gave it up a few weeks later and returned to normal.