On 2021-10-30 3:43 p.m., Brandon Allbery wrote:
Wasn't there specifically a new cabal version released to deal with
9.2.1? /

There is a double fault here.

Firstly yes, one should use a newer version of cabal-install that is known to support GHC 9.2.

So, it is! But GHC 9.2.1 will also play a role...

$ cabal --version
cabal-install version
compiled using version of the Cabal library

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.2.1

$ cabal install --lib vector
Resolving dependencies...
Build profile: -w ghc-9.2.1 -O1
In order, the following will be built (use -v for more details):
 - primitive- (lib) (requires download & build)
 - vector- (lib) (requires download & build)
[... success ...]

$ cat .ghc/x86_64-linux-9.2.1/environments/default
package-db /home/trebla/.cabal/store/ghc-9.2.1/package.db
package-id ghc-9.2.1
package-id bytestring-
package-id unix-
package-id base-
package-id time-
package-id hpc-
package-id filepath-
package-id process-
package-id array-
package-id integer-gmp-1.1
package-id containers-
package-id ghc-boot-9.2.1
package-id binary-
package-id ghc-prim-0.8.0
package-id ghci-9.2.1
package-id rts
package-id terminfo-
package-id transformers-
package-id deepseq-
package-id ghc-boot-th-9.2.1
package-id pretty-
package-id template-haskell-
package-id directory-
package-id text-
package-id vector-

$ ghci
GHCi, version 9.2.1: https://www.haskell.org/ghc/  :? for help

(Foreshadowing: Wait a second! Where is the obligatory message "Loaded package environment etc etc"?)

ghci> import Data.Vector

<no location info>: error:
    Could not find module ‘Data.Vector’
    Perhaps you meant Data.Functor (from base-

Glasgow-haskell-users mailing list

Reply via email to