{"action":"created","issue":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/630","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/630/labels{/name}","comments_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/630/comments","events_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/630/events","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/630","id":108860402,"number":630,"title":"Trying to compile with Stack ","user":{"login":"fatlazycat","id":338975,"avatar_url":"https://avatars.githubusercontent.com/u/338975?v=3","gravatar_id":"","url":"https://api.github.com/users/fatlazycat","html_url":"https://github.com/fatlazycat","followers_url":"https://api.github.com/users/fatlazycat/followers","following_url":"https://api.github.com/users/fatlazycat/following{/other_user}","gists_url":"https://api.github.com/users/fatlazycat/gists{/gist_id}","starred_url":"https://api.github.com/users/fatlazycat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatlazycat/subscriptions","organizations_url":"https://api.github.com/users/fatlazycat/orgs","repos_url":"https://api.github.com/users/fatlazycat/repos","events_url":"https://api.github.com/users/fatlazycat/events{/privacy}","received_events_url":"https://api.github.com/users/fatlazycat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-29T12:38:04Z","updated_at":"2015-10-04T21:21:26Z","closed_at":"2015-09-29T14:02:38Z","body":"Getting the error below - any ideas ? Thanks\r\n\r\n[24 of 46] Compiling Language.Haskell.GhcMod.CabalHelper ( Language/Haskell/GhcMod/CabalHelper.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/CabalHelper.o )\r\n\r\n/Users/graham/Development/GitHub/kazu-yamamoto/ghc-mod/Language/Haskell/GhcMod/CabalHelper.hs:149:33:\r\n    Not in scope: ‘packageId’\r\n\r\n/Users/graham/Development/GitHub/kazu-yamamoto/ghc-mod/Language/Haskell/GhcMod/CabalHelper.hs:181:19:\r\n    Not in scope: ‘nonDefaultConfigFlags’\r\n\r\n--  While building package ghc-mod-5.4.0.0 using:\r\n      /Users/graham/.stack/programs/x86_64-osx/ghc-7.10.2/bin/runhaskell -clear-package-db -global-package-db -package-db=/Users/graham/.stack/snapshots/x86_64-osx/lts-3.1/7.10.2/pkgdb/ -package-db=/Users/graham/Development/GitHub/kazu-yamamoto/ghc-mod/.stack-work/install/x86_64-osx/lts-3.1/7.10.2/pkgdb/ -hide-all-packages -package=Cabal-1.22.4.0 -package-id=array-0.5.1.0-d4206b835b96b5079d918fa1eab1a9a8 -package-id=async-2.0.2-7323ce9f8a31649b3f9f961e623ae0eb -package-id=base-4.8.1.0-075aa0db10075facc5aaa59a7991ca2f -package-id=bin-package-db-0.0.0.0-71b1f94b30d7a1fe22f2a3f0275c8bac -package-id=binary-0.7.5.0-b4f872f1068495283845a7992e4f6618 -package-id=bytestring-0.10.6.0-6e8453cb70b477776f26900f41a5e17a -package-id=cabal-helper-0.6.0.0-59a40e50cbb05f3f755fd3b915107430 -package-id=cereal-0.4.1.1-e7af0306d1317407815a09e40431fc3f -package-id=containers-0.5.6.2-2b49cce16f8a2908df8454387e550b93 -package-id=deepseq-1.4.1.1-5de90d6c626db2476788444fb08c1eb3 -package-id=directory-1.2.2.0-16f6a661d4e92cd8da4d681a1d197064 -package-id=djinn-ghc-0.0.2.3-fb1486147874b2abc31477269a72c6d5 -package-id=extra-1.4.1-10981919157f075e77e5e570c61376e9 -package-id=fclabels-2.0.2.2-2068649f4869be50312ae1c5ddb76e67 -package-id=filepath-1.4.0.0-8fee9c13b5e42926cc01f6aa7c403c4b -package-id=ghc-7.10.2-5c2381785a7b22838c6eda985bc898cf -package-id=ghc-paths-0.1.0.9-e7ee9a76d773972444df1dd257b112b7 -package-id=ghc-prim-0.4.0.0-af16264bc80979d06e37ac63e3ba9a21 -package-id=ghc-syb-utils-0.2.3-7d93342cee651e037144ea62ab901559 -package-id=haskeline-0.7.2.1-a9816ae1f7563dbf8f0c71ad2752be1c -package-id=haskell-src-exts-1.16.0.1-3b3cd01a33c8fa2b6d92a59c096896ee -package-id=hlint-1.9.21-a330a9d0939eb2cfcc1eac602690d791 -package-id=hoopl-3.10.0.2-23d01e65b41f9f95d1fa798d80ae93f9 -package-id=hpc-0.6.0.2-49bce407db3f37807645ac03c42b8ff3 -package-id=integer-gmp-1.0.0.0-8e0f14d0262184533b417ca1f8b44482 -package-id=monad-control-1.0.0.4-9b806c409db033e571fac7650e2dbb97 -package-id=monad-journal-0.7.1-e09985816fe7ba8e7d7a77bf954f80f2 -package-id=mtl-2.2.1-5cf332b11edb88a6040af20fd6a58acb -package-id=old-time-1.1.0.3-87d81aebf328992ede4a450f399e9481 -package-id=pipes-4.1.6-c07bbc3fcbfbca18bfc0d2547d098560 -package-id=pretty-1.1.2.0-1d31b75e6aa28069010db3db8ab24535 -package-id=process-1.2.3.0-36e5501145ab363f58c5e5a7079e9636 -package-id=split-0.2.2-bdc181dc0cb027cda71092df3fe3fb02 -package-id=syb-0.5.1-09089498a055bd723b4a95c1351d3c8a -package-id=template-haskell-2.10.0.0-161ca39a5ae657ff216d049e722e60ea -package-id=temporary-1.2.0.3-01e00d576953a4beb8526af3af26ac5e -package-id=terminfo-0.4.0.1-c72a7d139b97f9299867b81ab34b8dde -package-id=text-1.2.1.3-2395ef415c1b20175aae83b50060e389 -package-id=time-1.5.0.1-710377a9566ae0edafdde8dc74a184c3 -package-id=transformers-0.4.2.0-21dcbf13c43f5d8cf6a1f54dee6c5bff -package-id=transformers-base-0.4.4-47d17665c0db26ffcb68c46caa7346c1 -package-id=unix-2.7.1.0-75051e1ddce506fe76a9ea932b926357 -package-id=xhtml-3000.2.1-5a3d6f023f8af89b9c3e60e732c4b723 /Users/graham/Development/GitHub/kazu-yamamoto/ghc-mod/Setup.hs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/ build lib:ghc-mod exe:ghc-mod exe:ghc-modi --ghc-options  -ddump-hi -ddump-to-file\r\n    Process exited with code: ExitFailure 1"},"comment":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/comments/145388622","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/630#issuecomment-145388622","issue_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/630","id":145388622,"user":{"login":"d12frosted","id":6507913,"avatar_url":"https://avatars.githubusercontent.com/u/6507913?v=3","gravatar_id":"","url":"https://api.github.com/users/d12frosted","html_url":"https://github.com/d12frosted","followers_url":"https://api.github.com/users/d12frosted/followers","following_url":"https://api.github.com/users/d12frosted/following{/other_user}","gists_url":"https://api.github.com/users/d12frosted/gists{/gist_id}","starred_url":"https://api.github.com/users/d12frosted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d12frosted/subscriptions","organizations_url":"https://api.github.com/users/d12frosted/orgs","repos_url":"https://api.github.com/users/d12frosted/repos","events_url":"https://api.github.com/users/d12frosted/events{/privacy}","received_events_url":"https://api.github.com/users/d12frosted/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T21:21:26Z","updated_at":"2015-10-04T21:21:26Z","body":"> I really don't want to have to update that every time I commit something to cabal-helper -.-\r\n\r\nBut you don't have to. `ghc-mod` has following line in it's cabal file:\r\n\r\n```\r\ncabal-helper == 0.6.* && >= 0.6.0.0\r\n```\r\n\r\nCorrect me if I am wrong, but I though that your flow is following - when you release new version of `cabal-helper` you decide if `cabal` file needs to be updated as well in order to include latest changes, right? So for stack you need to do only one additional step - update commit hash in `stack.yaml` to 'release' commit (where you bump `cabal-helper` version or something like that).\r\n\r\nSo yeah, I agree, updating commit hash on every change made to `cabal-helper` is ridiculous. But, why would you want to do it if you actually care only about the version of that package. I think about commit hash as the lower bound. \r\n\r\nWhat do you think about it?"}}