{"action":"created","issue":{"url":"https://api.github.com/repos/faylang/fay/issues/451","repository_url":"https://api.github.com/repos/faylang/fay","labels_url":"https://api.github.com/repos/faylang/fay/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/faylang/fay/issues/451/comments","events_url":"https://api.github.com/repos/faylang/fay/issues/451/events","html_url":"https://github.com/faylang/fay/issues/451","id":316724860,"node_id":"MDU6SXNzdWUzMTY3MjQ4NjA=","number":451,"title":"getRuntime and getConfigRuntime disappeared","user":{"login":"maxigit","id":115336,"node_id":"MDQ6VXNlcjExNTMzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/115336?v=4","gravatar_id":"","url":"https://api.github.com/users/maxigit","html_url":"https://github.com/maxigit","followers_url":"https://api.github.com/users/maxigit/followers","following_url":"https://api.github.com/users/maxigit/following{/other_user}","gists_url":"https://api.github.com/users/maxigit/gists{/gist_id}","starred_url":"https://api.github.com/users/maxigit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxigit/subscriptions","organizations_url":"https://api.github.com/users/maxigit/orgs","repos_url":"https://api.github.com/users/maxigit/repos","events_url":"https://api.github.com/users/maxigit/events{/privacy}","received_events_url":"https://api.github.com/users/maxigit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-23T09:09:38Z","updated_at":"2018-10-28T19:29:03Z","closed_at":"2018-10-27T10:47:03Z","author_association":"NONE","body":"getRuntime has disappeared as well as getConfigRuntime. This break yesod-fay module."},"comment":{"url":"https://api.github.com/repos/faylang/fay/issues/comments/433734179","html_url":"https://github.com/faylang/fay/issues/451#issuecomment-433734179","issue_url":"https://api.github.com/repos/faylang/fay/issues/451","id":433734179,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzczNDE3OQ==","user":{"login":"swamp-agr","id":6595049,"node_id":"MDQ6VXNlcjY1OTUwNDk=","avatar_url":"https://avatars0.githubusercontent.com/u/6595049?v=4","gravatar_id":"","url":"https://api.github.com/users/swamp-agr","html_url":"https://github.com/swamp-agr","followers_url":"https://api.github.com/users/swamp-agr/followers","following_url":"https://api.github.com/users/swamp-agr/following{/other_user}","gists_url":"https://api.github.com/users/swamp-agr/gists{/gist_id}","starred_url":"https://api.github.com/users/swamp-agr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swamp-agr/subscriptions","organizations_url":"https://api.github.com/users/swamp-agr/orgs","repos_url":"https://api.github.com/users/swamp-agr/repos","events_url":"https://api.github.com/users/swamp-agr/events{/privacy}","received_events_url":"https://api.github.com/users/swamp-agr/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T19:29:03Z","updated_at":"2018-10-28T19:29:03Z","author_association":"CONTRIBUTOR","body":"Hi @maxigit, \r\n\r\nThanks! I have a project \r\n\r\n- Yesod+Fay under the hood,\r\n- with OSX as host system, \r\n- Ubuntu as target system,\r\n- 2 different `stack` configs (with and without docker).\r\n\r\nAnd a couple of notes how to run `fay` across it.\r\nOne trick helped me especially a lot when I tried to add new Fay file in the project.\r\n\r\nFor linux projects I do:\r\n\r\n```\r\nexport GHC_PACKAGE_PATH=$(stack path --ghc-package-path)\r\n```\r\n\r\nFor osx project: \r\n\r\n```\r\nunset GHC_PACKAGE_PATH\r\n```\r\n\r\nIt caused by: \r\n\r\n- `Fay.Compiler.Packages` uses `ghc_pkg` from `ghc-paths` package. \r\n- It refers to global package database. \r\n- In case of stack: somewhere inside `~/.stack/.../*linux*/...`. \r\n- But for some reason `fay` is not there but it located in `~/my/project/.stack-work/...`. \r\n\r\nSo, this trick looks like workaround. Actually, it is workaround. I am thinking about how to mitigate it with proper combination of `cabal`/`ghc`/`stack` options."}}
{"actor":{"display_login":"swamp-agr"}}