【发布时间】:2023-03-30 16:19:01
【问题描述】:
所以我尝试使用 reactive-banana + wxHaskell 进行 GUI 编程。作为 Haskell 及其开发工具的新手,我对堆栈感到非常困惑。
所以我尝试stack install wx,它提示我安装wxcore,它提示我安装wxc 和wxdirect。在我stack install wxdirect 之后,我尝试运行stack install wxc,但是你瞧:
While constructing the BuildPlan the following exceptions were encountered:
-- Failure when adding dependencies:
wxdirect: needed (>=0.90.1.1), not present in build plan (latest is 0.92.1.0)
needed for package: wxc-0.92.1.1
-- While attempting to add dependency,
Could not find package wxdirect in known packages
Recommended action: try adding the following to your extra-deps in {project root}/stack.yaml
- wxdirect-0.92.1.0
简而言之,我正在尝试像cabal-install 一样使用stack。而且我不确定为什么这是错误的。如果错了,那么stack 和cabal-install 有什么区别?
【问题讨论】:
标签: haskell cabal cabal-install haskell-stack wxhaskell