Horror and comedy may seem like opposites – experiences that rarely overlap in the real world – but they have much in common. Both depend on timing, for example, and both use the element of surprise to catch their audience unawares. In the hands of a skillful filmmaker, horror and comedy can be combined to memorable effect, as directors and writers like Edgar Wright, Jordan Peele, Wes Craven, and even Mel Brooks can attest.
Source:https://www.cbr.com/best-horror-comedies-of-the-past-decade/