Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Aug 2019 10:16:06 +0400
From:      Gleb Popov <6yearold@gmail.com>
To:        Kevin Zheng <kevinz5000@gmail.com>
Cc:        haskell@freebsd.org
Subject:   Re: xmonad --recompile is broken with cabal change
Message-ID:  <CALH631kNotMTY7Bb=c3V5NLc7tN1vRn0V88z=SLWcuhnDYrFCg@mail.gmail.com>
In-Reply-To: <e8be5189-4333-eaea-2e5d-16090c65d7ab@gmail.com>
References:  <e8be5189-4333-eaea-2e5d-16090c65d7ab@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 28, 2019, 09:28 Kevin Zheng <kevinz5000@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 =E2=80=98XMonad=E2=80=99
>
> 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@gmail.com | kevinz@berkeley.edu
> XMPP: kevinz@eecs.berkeley.edu
> _______________________________________________
> freebsd-haskell@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-haskell
> To unsubscribe, send any mail to "freebsd-haskell-unsubscribe@freebsd.org=
"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631kNotMTY7Bb=c3V5NLc7tN1vRn0V88z=SLWcuhnDYrFCg>