Gabe Habash collects the best songs inspired by literature:
You may not realize it, but literature is well represented by metal bands. Iron Maiden alone has songs with references to the works of C.S. Lewis, Orson Scott Card, Samuel Taylor Coleridge, and Tennyson. Another literary metal band is Metallica, whose "For Whom the Bell Tolls" references Hemingway and "The Thing That Should Not Be" (and "The Call of Ktulu") references Lovecraft. "One," a seven-minute power ballad, is based on Trumbo’s Johnny Got His Gun, with lyrics like "Fed through the tube that sticks in me just like a wartime novelty." The music video features dialogue and scenes from the 1971 film version of Trumbo’s book.
(Video: Devo's "Whip It" was inspired by Pynchon's Gravity's Rainbow)