【问题标题】:Specify to Stack which version of Happy to use指定 Stack 使用哪个版本的 Happy
【发布时间】:2017-03-08 10:11:37
【问题描述】:

我在最新版本的 Happy (1.19.5) 中遇到了a bug。我如何告诉 stack 去寻找仅在 git repo 中找到的更新版本的 Happy (1.19.6)?现在,我让堆栈管理一切;唯一提到快乐的是在我的阴谋集团文件中。相关部分是:

...

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

...

【问题讨论】:

    标签: haskell cabal haskell-stack happy


    【解决方案1】:

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

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

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

    【讨论】:

    • 我可能错了,但happyalex在这方面不是特别吗?或者他们被视为任何其他包?请注意,这不是 build-depends 部分...
    • @Alec 啊,我的印象是它在build-depends 部分。该线程可能会对您有所帮助:github.com/commercialhaskell/stack/issues/…。让我们知道进展如何。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-27
    • 2011-06-13
    • 2018-10-22
    • 1970-01-01
    • 1970-01-01
    • 2017-11-15
    • 1970-01-01
    相关资源
    最近更新 更多