Martin Seligman said this quote

One of the things psychologists used to say was that if you are depressed, anxious or angry, you couldn't be happy. Those were at opposite ends of a continuum. I believe that you can be suffering or have a mental illness and be happy - just not in the same moment that you're sad.