Classic Doctor Who
The Happiness Patrol: Part 1
S25 E5:
The Doctor and Ace head to the Earth colony of Terra Alpha, where sadness and misery are outlawed and those who don't follow the rules will be executed.