xmonad --recompile is broken with cabal change

Gleb Popov 6yearold at gmail.com
Wed Aug 28 06:16:23 UTC 2019


On Wed, Aug 28, 2019, 09:28 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.
>

Hmm, xmonad should use old cabal machinery (bsd.cabal.mk) and all recent
cabal changes were done to the new framework (Uses/cabal.mk).

Unfortunately, I'm away from computer ATM and can't check this myself. I'll
take a look at it as soon as possible.


> 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"
>


More information about the freebsd-haskell mailing list