The writer, known for Rosencrantz and Guildenstern Are Dead and Shakespeare In Love, died at his home in Dorset.