Dario Argento makes the most lovely horror movies. They rarely make sense, but if you really care about that, you probably shouldn’t be watching them. In his 1980 film Inferno, Argento stages a key scene in a creepy library in Rome. The library stuff comes about 6 minutes into this clip. Jump ahead to the next scene if you want to see what price you pay for stealing creepy books about the occult from creepy libraries in the middle of the night.
And if you like Argento and horror movies with library twists, make sure to watch Deep Red, which ends with a gory twist in the city archives.