所以实际上,当我运行install时,它似乎已经安装好了:
$ cabal install pretty-simple
Resolving dependencies...
Copying 'pretty-simple.exe' to 'C:\Users\ameen\.local\bin\pretty-simple.exe'
Error: cabal.exe: Path 'C:\Users\ameen\.local\bin\pretty-simple' already
exists. Use --overwrite-policy=always to overwrite.
但当我检查它是否安装时,它似乎没有:
$ cabal list pretty-simple
* pretty-simple
Synopsis: pretty printer for data types with a 'Show' instance.
Default available version: 4.1.2.0
Installed versions: [ Not installed ]
Homepage: https://github.com/cdepillabout/pretty-simple
License: BSD3
我尝试过:
添加--lib
用cabal install指定位置非常简单--package db=C:\tools\ghc-9.6.1\lib\package.conf.d
使用新的install和v1 install命令
使用--overwrite policy=始终覆盖
我使用的是Windows 11。你知道我的问题是什么吗?