Как использовать песочницу haskell в cabal 3.x? - PullRequest
1 голос
/ 30 мая 2020

cabal 3.x у меня не работает.

Я хотел использовать песочницу, как в cabal 2.x. Но установка пакетов кажется успешной или нет.

В документации сказано, что команды v1- все еще доступны.

Но как такое возможно:

cabal v1-build говорит cabal: Encountered missing or private dependencies

и

cabal v1-install --only-dependencies говорит All the requested packages are already installed

Журнал оболочки:

lists0@duin ~/programming/haskell/mysoftware (git)-[Streamly] % cabal v1-build
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: mysoftware-0.1.0.0 (user goal)
[__1] unknown package: unordered-containers (dependency of mysoftware)
[__1] fail (backjumping, conflict set: unordered-containers, mysoftware)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: mysoftware, unordered-containers
Trying configure anyway.
Configuring mysoftware-0.1.0.0...
cabal: Encountered missing or private dependencies:
data-default -any,
fclabels -any,
hashable -any,
megaparsec -any,
parser-combinators -any,
sorted-list -any,
typerep-map -any,
unordered-containers -any

1 lists0@duin ~/programming/haskell/mysoftware (git)-[Streamly] % cabal v1-install --only-dependencies                                       :(
Resolving dependencies...
All the requested packages are already installed:
Use --reinstall if you want to reinstall anyway.

lists0@duin ~/programming/haskell/mysoftware (git)-[Streamly] % cabal v1-build                      
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: mysoftware-0.1.0.0 (user goal)
[__1] unknown package: unordered-containers (dependency of mysoftware)
[__1] fail (backjumping, conflict set: unordered-containers, mysoftware)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: mysoftware, unordered-containers
Trying configure anyway.
Configuring mysoftware-0.1.0.0...
cabal: Encountered missing or private dependencies:
data-default -any,
fclabels -any,
hashable -any,
megaparsec -any,
parser-combinators -any,
sorted-list -any,
typerep-map -any,
unordered-containers -any
...