Registering multiple package versions with `ghc-pkg`?

I'm trying to set GHCand Cabalon FreeBSD 8.1. I installed GHC 7.0.1 (because it is the current stable version) and is now trying to install Cabal(for installation cabal-install), but it does not work with this error message.

%./Setup configure
Configuring Cabal-1.8.0.4...
Setup: At least the following dependencies are missing:
base >=4 && <3 && >=1 && <5, filepath >=1 && <1.2
%

Definitely, my version of the library is too high.

%ghc-pkg list
/usr/local/lib/ghc-7.0.1/package.conf.d
   Cabal-1.10.0.0
   array-0.3.0.2
   base-4.3.0.0
   bin-package-db-0.0.0.0
   bytestring-0.9.1.8
   containers-0.4.0.0
   directory-1.1.0.0
   extensible-exceptions-0.1.1.2
   ffi-1.0
   filepath-1.2.0.0
   ghc-7.0.1
   ghc-binary-0.5.0.2
   ghc-prim-0.2.0.0
   haskell2010-1.0.0.0
   haskell98-1.1.0.0
   hpc-0.5.0.6
   integer-gmp-0.2.0.2
   old-locale-1.0.0.2
   old-time-1.0.0.6
   pretty-1.0.1.2
   process-1.0.1.4
   random-1.0.0.3
   rts-1.0
   template-haskell-2.5.0.0
   time-1.2.0.3
   unix-2.4.1.0
/home/eonil/.ghc/x86_64-freebsd-7.0.1/package.conf.d
   network-2.2.1.5
   parsec-2.1.0.1
%

Should I upgrade to GHC 6.x? Or can I install a lower version of packages? (or side by side installation)

+3
source share
3 answers

I had to downgrade GHC 6.x. I originally did this for Happstack. However, Happstack requires at least 6.12.x GHC, and installing Cabal on FreeBSD 8.1 with GHC 7.x is too complicated. (I could not succeed)

GHC 6.12.3 - GHC, ! Cabal, Happstack . - .

0

, Haskell, DLL.

, , . cabal install base-3.0.3.2, , GHC 7.0.1.

cabal-dev capri. , , .

, , GHC, Haskell Platform. GHC 6.12.3 .

: , cabal. Haskell. , .

+3

ghc-6.12, Cabal-1.8. ghc cabal-install , ghc-7 cabal.

, Cabal-1.8 ghc-7. , . ./Setup configure -fbase4 -f-base3 , .

: darcs, cabal. Cabal-1.10 ghc-7, . , darcs.

+1
source

Source: https://habr.com/ru/post/1795183/


All Articles