When building an executable which links to hyphenation in one machine for deployment to a different machine I need to create a tree of directories in production mimicking the path where I built the executable in the dev machine and copy the data files to avoid errors in production like: /home/alberto/src/myproject/.cabal-sandbox/share/x86_64-linux-ghc-7.8.3/hyphenation-0.4/hyph-es.chr.txt: openFile: does not exist (No such file or directory)
Ideally I would like to deploy self-contained executables or at least have a configurable data directory.
Perhaps some Template Haskell could embed those data files in the compiled library itself?
When building an executable which links to
hyphenationin one machine for deployment to a different machine I need to create a tree of directories in production mimicking the path where I built the executable in the dev machine and copy the data files to avoid errors in production like:/home/alberto/src/myproject/.cabal-sandbox/share/x86_64-linux-ghc-7.8.3/hyphenation-0.4/hyph-es.chr.txt: openFile: does not exist (No such file or directory)Ideally I would like to deploy self-contained executables or at least have a configurable data directory.
Perhaps some Template Haskell could embed those data files in the compiled library itself?