This for ghciwatch on a stack project. Thanks!
See ghci - The Haskell Tool Stack . I think you are looking for Stack’s —no-load flag.
—no-load