In Cabal HEAD, when hsc2hs is invoked an absolute path is passed which then leaks into the object files due to this path being used in a LINE pragma.
In older versions of Cabal this is a relative path which doesn't include the build directory.
I suspect this is due to work performed by @sheaf so I will coordinate investigations with him to investigate a fix.