{"action":"created","issue":{"url":"https://api.github.com/repos/ekmett/hyphenation/issues/3","labels_url":"https://api.github.com/repos/ekmett/hyphenation/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ekmett/hyphenation/issues/3/comments","events_url":"https://api.github.com/repos/ekmett/hyphenation/issues/3/events","html_url":"https://github.com/ekmett/hyphenation/issues/3","id":54437451,"number":3,"title":"hyphenation is painful to deploy","user":{"login":"albertov","id":865291,"avatar_url":"https://avatars.githubusercontent.com/u/865291?v=3","gravatar_id":"","url":"https://api.github.com/users/albertov","html_url":"https://github.com/albertov","followers_url":"https://api.github.com/users/albertov/followers","following_url":"https://api.github.com/users/albertov/following{/other_user}","gists_url":"https://api.github.com/users/albertov/gists{/gist_id}","starred_url":"https://api.github.com/users/albertov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertov/subscriptions","organizations_url":"https://api.github.com/users/albertov/orgs","repos_url":"https://api.github.com/users/albertov/repos","events_url":"https://api.github.com/users/albertov/events{/privacy}","received_events_url":"https://api.github.com/users/albertov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-15T11:11:13Z","updated_at":"2015-01-15T13:20:58Z","closed_at":null,"body":"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.t\r\nxt: openFile: does not exist (No such file or directory)`\r\n\r\nIdeally I would like to deploy self-contained executables or at least have a configurable data directory.\r\n\r\nPerhaps some Template Haskell could embed those data files in the compiled library itself?"},"comment":{"url":"https://api.github.com/repos/ekmett/hyphenation/issues/comments/70084272","html_url":"https://github.com/ekmett/hyphenation/issues/3#issuecomment-70084272","issue_url":"https://api.github.com/repos/ekmett/hyphenation/issues/3","id":70084272,"user":{"login":"albertov","id":865291,"avatar_url":"https://avatars.githubusercontent.com/u/865291?v=3","gravatar_id":"","url":"https://api.github.com/users/albertov","html_url":"https://github.com/albertov","followers_url":"https://api.github.com/users/albertov/followers","following_url":"https://api.github.com/users/albertov/following{/other_user}","gists_url":"https://api.github.com/users/albertov/gists{/gist_id}","starred_url":"https://api.github.com/users/albertov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertov/subscriptions","organizations_url":"https://api.github.com/users/albertov/orgs","repos_url":"https://api.github.com/users/albertov/repos","events_url":"https://api.github.com/users/albertov/events{/privacy}","received_events_url":"https://api.github.com/users/albertov/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T13:20:58Z","updated_at":"2015-01-15T13:20:58Z","body":"[file-embed](https://hackage.haskell.org/package/file-embed) does just this. I'm going to take at stab at it..."}}