我对haskell很新,我已经安装了堆栈,但几乎没有任何工作。
例如:
lpuggini@lpuggini-T3420:~$ stack install cassava
Run from outside a project, using implicit global project config
Using resolver: lts-9.18 from implicit global project's config file: /home/local/CORVIL/lpuggini/.stack/global-project/stack.yaml
Invalid package ID: "array-0.5.1.1 base-4.9.1.0 binary-0.8.3.0 bytestring-0.10.8.1"
lpuggini@lpuggini-T3420:~$
和
lpuggini@lpuggini-T3420:~$ stack upgrade
Fetched package index.
Populated index cache.
Cabal file warning in /tmp/stack-upgrade8199/stack-1.6.1/stack.cabal: Ignoring unknown section type: custom-setup
Cabal file warning in /tmp/stack-upgrade8199/stack-1.6.1/stack.cabal: Ignoring unknown section type: custom-setup
Invalid package ID: "array-0.5.1.1 base-4.9.1.0 binary-0.8.3.0 bytestring-0.10.8.1"
以下是一些信息:
lpuggini@lpuggini-T3420:~$ which stack
/usr/bin/stack
lpuggini@lpuggini-T3420:~$ stack --version
Version 0.1.10.0 x86_64
我假设我正在运行旧版本的堆栈。
我想我应该从~/.stack
运行它,但我找不到合适的启动器:
lpuggini@lpuggini-T3420:~$ ls .stack/programs/x86_64-linux/ghc-8.0.2/bin/
ghc ghc-8.0.2 ghci ghci-8.0.2 ghc-pkg ghc-pkg-8.0.2 haddock haddock-ghc-8.0.2 hp2ps hpc hsc2hs runghc runghc-8.0.2 runhaskell
lpuggini@lpuggini-T3420:~$
我做错了什么?我怎么解决?