The add-dependent-file library provides a safer wrapper around addDependentFile that checks that extra-source-files section in the cabal file contains addDependentFile argument and issues a correspondent compilation warning if it does not, because addDependentFile has no effect otherwise.
8 Likes