Joseph Campbell said this quote

[Comedies], in the ancient world, were regarded as of a higher rank than tragedy, of a deeper truth, of a more difficult realization, of a sounder structure, and of a revelation more complete. The happy ending of the fairy tale, the myth, and the divine comedy of the soul, is to be read, not as a contradiction, but as a transcendence of the universal tragedy of man.... Tragedy is the shattering of the forms and of our attachments to the forms; comedy, the wild and careless, inexhaustible joy of life invincible.