You are not logged in.
Pages: 1
I went to use GHCi last night when I got an error message:
[tijko@tijko ~]$ ghci
Loaded package environment from /home/tijko/.ghc/x86_64-linux-9.2.8/environments/default
GHCi, version 9.2.8: https://www.haskell.org/ghc/ :? for help
<command line>: cannot satisfy -package-id data-array-byte-0.1.0.1-8Yp2jYzUcCD2MHaot7tifU
(use -v for more information)I'm aware that since version 8.0.2.1 the default configuration in Archlinux is to ship all Haskell packages and libraries with dynamic linking. I've never had a problem and have used pacman to install all Haskell packages, as:
pacman -S haskell-data-array-byteI've never had any issues up until last night when I ran into that error message. I ended up going to $HOME/.ghc/x86_64-linux-9.2.8/environments/ and removing the line containing the "package-id" and it seemingly fixed the issue.
What would get the environment file to have the incorrect "package-id" like this? Also, I ran ghci through stack and it worked (ie. stack ghci). Now I know that stack used a different version of ghc but how do I coordinate them so not to have misaligned builds?
Edit: Found out what I needed to configure with Stack to align ghc versions.
Last edited by tijko (2024-05-05 16:06:31)
Offline
Pages: 1