Reputation: 320
What I want to install is scalpel
library.
When I try:
cabal install -p scalpel
I have following output:
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\maion_000>cabal install -p scalpel
Resolving dependencies...
In order, the following would be installed:
curl-1.3.8 +new-base (new package)
regex-base-0.93.2 (reinstall) changes: bytestring-0.10.0.2 -> 0.10.6.0,
mtl-2.1.2 -> 2.2.1
regex-tdfa-1.2.2 (new package)
tagsoup-0.13.10 (new package)
scalpel-0.3.0.1 (new package)
cabal: The following packages are likely to be broken by the reinstalls:
regex-posix-0.95.2
regex-compat-0.95.1
haskell-platform-2013.2.0.0
Use --force-reinstalls if you want to install anyway.
What should I do? I tried --force-reinstalls and it gives more errors.
Upvotes: 0
Views: 300
Reputation: 155
Cabal can become very problematic with dependencies blocking each other.
If you can, use stack
or cabal sandbox
.
This isolates creates isolated environments that can prevent the 'dependency hell'.
stack
automaticall creates a new sandbox for each project, while cabal sandbox
has to be triggered manually.
You can try to delete .cabal
and maybe .ghc
from your home directory to fix the current situation, but that fix will be temporary if you do not use sandboxing (which is exactly what stack
or cabal sandbox
do)
Upvotes: 1