
Hi all, I am on a Debian sid system. when I installed it, xmonad packages were not installable so I compiled it myself. At a time, it became available, I installed the package. A few days ago, I noticed that xmonad would not recompile anymore. I removed all the stuff I had compiled by myself, but still, it doesn't compile. ----------- xmonad --recompile XMonad will use ghc to recompile, because neither "/home/alain/.config/xmonad/build" nor "/home/alain/.config/xmonad/stack.yaml" exis ts. XMonad recompiling (forced). Errors detected while compiling xmonad config: /home/alain/.config/xmonad/xmonad.hs $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir /home/alain/.cache/xmonad/build-x86_64-linux -o /home/ala in/.cache/xmonad/xmonad-x86_64-linux ghc: can't find a package database at /home/alain/.cabal/store/ghc-9.0.2/package.db Please check the file for errors. --------- Thanks for your help. Alain

Hi Alain, On Mon, Nov 21 2022 06:26, Alain Bertrand wrote:
ghc: can't find a package database at /home/alain/.cabal/store/ghc-9.0.2/package.db
this sounds like more of a cabal issue, I think. Brandon probably knows best, but I think the usual advice here is to nuke ~/.cabal and reinstall. Tony -- Tony Zorman | https://tony-zorman.com/

That looks like you have an environment file hanging around somewhere.
It'll be named something like `.ghc.environment.x86-64-linux-9.0.2`.
You'll need to remove it, since it references a cabal store that no
longer exists.
On Mon, Nov 21, 2022 at 12:26 AM Alain Bertrand
Hi all,
I am on a Debian sid system. when I installed it, xmonad packages were not installable so I compiled it myself. At a time, it became available, I installed the package. A few days ago, I noticed that xmonad would not recompile anymore. I removed all the stuff I had compiled by myself, but still, it doesn't compile.
-----------
xmonad --recompile XMonad will use ghc to recompile, because neither "/home/alain/.config/xmonad/build" nor "/home/alain/.config/xmonad/stack.yaml" exis ts. XMonad recompiling (forced). Errors detected while compiling xmonad config: /home/alain/.config/xmonad/xmonad.hs $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir /home/alain/.cache/xmonad/build-x86_64-linux -o /home/ala in/.cache/xmonad/xmonad-x86_64-linux ghc: can't find a package database at /home/alain/.cabal/store/ghc-9.0.2/package.db
Please check the file for errors.
---------
Thanks for your help.
Alain
_______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com

Hi, Thank you for the answers. The culprit was in xmonad. Best regards, Alain On 21/11/2022 16:33, Brandon Allbery wrote:
That looks like you have an environment file hanging around somewhere. It'll be named something like `.ghc.environment.x86-64-linux-9.0.2`. You'll need to remove it, since it references a cabal store that no longer exists.
On Mon, Nov 21, 2022 at 12:26 AM Alain Bertrand
wrote: Hi all,
I am on a Debian sid system. when I installed it, xmonad packages were not installable so I compiled it myself. At a time, it became available, I installed the package. A few days ago, I noticed that xmonad would not recompile anymore. I removed all the stuff I had compiled by myself, but still, it doesn't compile.
-----------
xmonad --recompile XMonad will use ghc to recompile, because neither "/home/alain/.config/xmonad/build" nor "/home/alain/.config/xmonad/stack.yaml" exis ts. XMonad recompiling (forced). Errors detected while compiling xmonad config: /home/alain/.config/xmonad/xmonad.hs $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir /home/alain/.cache/xmonad/build-x86_64-linux -o /home/ala in/.cache/xmonad/xmonad-x86_64-linux ghc: can't find a package database at /home/alain/.cabal/store/ghc-9.0.2/package.db
Please check the file for errors.
---------
Thanks for your help.
Alain
_______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
participants (3)
-
Alain Bertrand
-
Brandon Allbery
-
Tony Zorman