I can't believe no one mentioned Fight Club. Even Chuck Palahniuk (the author) said something to the effect that the screenplay is the version of the book he wished he'd written.
And Full Metal Jacket comes close to being as good as it's source material (The Short-Timers). Though all of the best dialogue was ripped straight from the novel.