0

I'm running up against a bug in the latest version of Happy (1.19.5). How do I tell stack to go look for an even newer version of Happy (1.19.6) found only at the git repo? Right now, I'm letting stack manage everything; the only reference to Happy is in my cabal file. The relevant section is:

...

library:
  hs-source-dirs:      src
  ghc-options:         -Wall
  build-tools:         alex, happy

...
4

1 回答 1

1

您需要将以下内容放入stack.yaml文件中以将特定包视为依赖包:

packages:
- location: .
- location:
    git: git@github.com:orgname/project_name
    commit: <commitid>
  extra-dep: true

替换为正确的 git url 和提交 id 以引用快乐的项目。您可以在此处阅读更多相关信息。

于 2017-03-08T11:48:58.420 回答