who wrote happy

The hit song “Happy” from the Despicable Me 2 soundtrack was written, produced, and performed by Pharrell Williams.
He originally wrote “Happy” for CeeLo Green, who even recorded a version, but the label ultimately passed and Pharrell’s own version became the global smash everyone knows.
If you meant a different song titled “Happy” (for example by Leona Lewis or Danny Elfman), tell me the artist and year, and I can pinpoint that specific songwriter too.
Information gathered from public forums or data available on the internet and portrayed here.