Trying out “cabal sandbox init” and cabal not recognizing the command “sandbox”

有些话、适合烂在心里 提交于 2019-12-23 06:52:49

问题


I'm trying out the tutorial about making a simple website with scotty but I get an error when I try the command "cabal sandbox init":

cabal: unrecognised command: sandbox (try --help)

Does anyone know what is wrong?


回答1:


Is your Cabal/cabal-install version new enough? Sandboxes were introduced in Cabal 1.18. You can check the version with command cabal --version.

You might be able to upgrade with these commands:

cabal update
cabal install Cabal cabal-install


来源:https://stackoverflow.com/questions/27887249/trying-out-cabal-sandbox-init-and-cabal-not-recognizing-the-command-sandbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!