19

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?

Miikka
  • 4,573
  • 34
  • 47

1 Answers1

18

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
Miikka
  • 4,573
  • 34
  • 47