-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cabal build问题? #14
Comments
你把 |
我在windows10环境里,安装的是最新的haskell-playform 8.01,cabal 升级到了最新的版本。 另外,在ubuntu 16.10的环境下,通过sudo apt install haskell-platform,安装的是7。10。3版本,cabal是1。22。9的版本。出现的问题,则更多些。 Note: when using a sandbox, all packages are required to have consistent |
辛苦您了! |
我自己试了一下,除了之前你说的transformer的版本限制需要放宽之外(已经修改), 最容易产生问题的是下面这个范例:
报错的原因是 |
按照你的建议,我把code.sandbox中的database模块删除了, ArgParser.hs:13:5: ArgParser.hs:14:5: ArgParser.hs:18:5: ArgParser.hs:24:9: ArgParser.hs:25:9: ArgParser.hs:32:9: ArgParser.hs:33:9: |
单独进入ghci, |
提示当前没有
PS:建议lz好好读读我的书哈,看到第三部分的第一章之后你就会发现这些错误信息其实都蛮好解决的。 |
谢放。确实,在添加后,确实没有错了。 第12章 透镜组cabal run -- lens sudo cabal run -- lens sudo cabal run -- arg-parser sudo cabal run -- queens |
首先我不是很理解此处你为什么需要 PS: 我想我们的讨论还是转移到电邮比较好,这个repo的follower大部分是希望看到新的资料更新,或者是勘误更新的,类似你的这些问题并不是每个人都会遇到,所以麻烦把你的邮箱给我一下,如果你不习惯电邮的话,我可以通过邮箱发你我的微信或者QQ。 |
https://www.haskell.org/cabal/download.html |
请使用邮箱([email protected])联系,谢谢! |
git clone https://github.com/winterland1989/magic-haskell.git
cd ./magic-haskell/code
cabal sandbox init
cabal install --only-dependencies
都可以通过了
但cabal build 有问题
C:\Users\yangboant\magic-haskell\code>cabal build
Building code-0.1.0.0...
Preprocessing executable 'arg-parser' for code-0.1.0.0...
: error:
output was redirected with -o, but no output will be generated
because there is no Main module.
The text was updated successfully, but these errors were encountered: