Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying out "cabal sandbox init" and cabal not recognizing the command "sandbox"

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?

like image 887
Georgi D. Georgiev Avatar asked Jan 11 '15 12:01

Georgi D. Georgiev


1 Answers

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
like image 130
Miikka Avatar answered Oct 16 '22 07:10

Miikka