I want to create a learning environment for Haskell as I want to try and learn the language. So I read about Cabal and already got it on my machine, because sometimes I updated pandoc. I followed the tutorials that say you should run:
$ cabal sandbox init
$ cabal install --only-dependencies
$ cabal build
To set up the environment. However, if I try, I get the following message:
$ cabal sandbox init
Writing a default package environment file to
/home/xiaolong/development/Haskell/cabal.sandbox.config
Using an existing sandbox located at
/home/xiaolong/development/Haskell/.cabal-sandbox
(command output ls)
$ ls
cabal.sandbox.config
And then:
$ cabal install
cabal: Error reading local package.
Couldn't find .cabal file in: .
A? Should there suddenly be a file .cabal? It puzzles me. What steps should I take to get an environment where I can simply install packages and then use this environment to run the code for any tutorials that I choose?
- , . - .
( , cabal python, , , , .)