问题
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