The Shining was also heavily influenced by Shirley Jackson's 1959 novel The Haunting of Hill House,[10] Edgar Allan Poe's short stories "The Fall of the House of Usher" (1839) and "The Masque of the Red Death" (1842),[8] and Robert Marasco's 1973 novel Burnt Offerings.[6] The story has often been compared to Guy de Maupassant's story "The Inn".[11]
https://en.wikipedia.org/wiki/The_Shining_(novel)
I watched "Burnt Offerings" and thought damn, this movie has so much in common with "The Shining", so I looked into it.
It turns out, Stephen King pretty much copied the book and changed several things to make "The Shining".
What a great writer.