# \[ANN\] smarter addDependentFile

**URL:** <https://discourse.haskell.org/t/ann-smarter-adddependentfile/13741>\
**Category:** Announcements\
**Created:** [February 26, 2026, 9:57am UTC](https://discourse.haskell.org/t/ann-smarter-adddependentfile/13741 "2026-02-26T09:57:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dyaitskov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/dyaitskov/32/5142_2.png) [@dyaitskov](https://discourse.haskell.org/u/dyaitskov)\
**Post date:** [February 26, 2026, 9:57am UTC](https://discourse.haskell.org/t/ann-smarter-adddependentfile/13741/1 "2026-02-26T09:57:28Z")

</div>

The [add-dependent-file](https://github.com/yaitskov/add-dependent-file) library provides a safer wrapper around [addDependentFile](https://hackage.haskell.org/package/template-haskell/docs/Language-Haskell-TH-Syntax.html#v: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.
