Buried for Pleasure, by Edmund Crispin
Buried for Pleasure is a pastoral murder mystery, with elements of literary criticism, political satire and a good old-fashioned love story to boot. This book must have been part of the inspiration for the TV genre of murders in the village. The ending ties up neatly and predictably for a pastoral story, and if you are not overly worried about the characterisation of consciousness it is wonderful.
The solution is obvious about a third of the way in, but you cannot be sure exactly and there is the vexing question of how it was done. And the murder is committed (and hence the real mystery only kicks in) after it's obvious who the murderer is.
Crispin gives us the best of both: a plotting ability that squares up to the Golden Age of mystery novels and a prose style derived from Waugh, Wodehouse, Forster. He is most similar to Michael Innes whose crime fiction was also witty, literary and full of allusions. (Edmund Crispin was a pen name taken from one of Innes' books, the excellent Hamlet, Revenge! (US link)).
Julian Symons said Innes thought of detective fiction as, 'an over-civilized joke with a frivolity which makes it a literary conversation piece with detection taking place on the side'. That's an excellent sub-genre and it's exactly what Crispin offers.