According to Aristophanes, we laugh in order to restore order.
Henri Bergson finds in laughter a corrective against repetitive and absurd behavior, clownish conduct and caricature.
Sigmund Freud proposes that we laugh "with" and we laugh "against", meaning that laughter includes or excludes people from a dominant group. Laughter can be cruel and complicitous at the same time.
I personally think that I laugh when I am happy. But, is laughter so simple?