Shakespeare is a right bastard on this genre thing, ok? Even in his early career he started to mock genres. He might have learnt a thing or two from his teacher Plautus, who arrogantly declared "I can write this play a tragedy, but…" in one of his prologues. Shakespeare loved transgression and mixtures, if nothing else. His most "farcical" play Comedy of Errors is regarded tragic comedy by some scholars, and in his Love's Labour's Lost Shakespeare made Berowne complained about how Berowne's own story failed to be a comedy due to the cold hearts of ladies and how the time limit of a play forbids him to pursue his lover further.