The Pali Cannon, penned in Sri Lanka in between 600 BC and one hundred BC, states that sexual relations, whether of homosexual or of heterosexual nature, is forbidden inside the monastic code, and states that any functions of soft homosexual sexual intercourse (for instance masturbation and interfumeral sexual intercourse) won't entail a punishment