`cabal` has specific support for this kind of stuff. Instead of assuming a directory layout like this, instead use the technique documented in http://www.haskell.org/cabal/users-guide/developing-packages.html#accessing-data-files-from-package-code