Di Renjie
The Haunted Monastery is a "gong'an" detective novel written by Robert van Gulik and set in Imperial China (roughly speaking the Tang Dynasty). It is a fiction based on the real character of Judge Dee (Di Renjie), a magistrate and statesman of the Tang court, who lived roughly 630–700.