later i somewhere read , or was told , that the film was based on a novel by raymond chandler and that william faulkner had come up with the screenplay , both of whom it seemed likely had been soused while they were writing .