xmonad --recompile is broken with cabal change

Gleb Popov 6yearold at gmail.com
Sat Aug 31 17:34:41 UTC 2019


On Wed, Aug 28, 2019 at 9:28 AM Kevin Zheng <kevinz5000 at gmail.com> wrote:

> Hi there,
>
> Sometime between a while ago and now (probably around the time of some
> cabal changes), `xmonad --recompile` stopped working:
>
> xmonad.hs:1:1: error:
>     Could not find module ‘XMonad’
>
> This is because the XMonad files are being installed to
> /usr/local/lib/cabal/ghc-8.6.5 instead of the usual
> /usr/local/lib/ghc-8.6.5.
>
> Now, xmonad does provide a register.sh, but this needs to be run on all
> the dependencies in order to correctly register with ghc-pkg.
>
> Is it reasonable to update the ports infrastructure to run ghc-pkg
> registration on all installed cabal packages?
>
> (Please CC me as I'm not on the list in your reply.)
>
> Thanks,
> Kevin
>
> --
> Kevin Zheng
> kevinz5000 at gmail.com | kevinz at berkeley.edu
> XMPP: kevinz at eecs.berkeley.edu
> _______________________________________________
> freebsd-haskell at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-haskell
> To unsubscribe, send any mail to "freebsd-haskell-unsubscribe at freebsd.org"
>

I just tried out `xmonad --recompile` in FreeBSD 12 jail and it worked fine
with sample config.

Despite xmonad package ending up in /usr/local/lib/cabal/ghc-8.6.5, it is
listed in `ghc-pkg list` output.

Have you tried reinstalling the package or GHC itself?


More information about the freebsd-haskell mailing list