Use template haskell to bring fields from your cabal file into your haskell source files.
import qualified Distribution.PackageDescription.TH as P
myVersion :: String
myVersion = $(packageVariable (pkgVersion . package))
$ cabal install cabal-file-th