<br><br><div class="gmail_quote">On Wed Dec 31 2014 at 4:25:12 PM Herbert Valerio Riedel <<a href="mailto:hvriedel@gmail.com">hvriedel@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Michael,<br>
<br>
On 2014-12-31 at 15:10:37 +0100, Michael Snoyman wrote:<br>
> tl;dr: Now that ghc (the library) doesn't depend on Cabal (the library),<br>
> can we remove Cabal from the global package database installed with GHC?<br>
<br>
[...]<br>
<br>
> For both of these reasons, I think we should limit the number of packages<br>
> included in the global package database. One seemingly small step we could<br>
> do on that front is not include extraneous packages. In GHC 7.10rc1, that<br>
> includes Cabal and xhtml:<br>
<br>
btw, haskeline and terminfo should be considered as well, according to<br>
your argument.<br>
<br></blockquote><div><br></div><div>Yes, I didn't mean to imply that my list was exhaustive, those were just two examples that jumped out at me.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> both packages are in the global package database, but could just as<br>
> easily be removed from there and installed by users. The motivation<br>
> for that would be to avoid problem (1) above.<br>
<br>
However, as for xhtml, haskeline and terminfo, we had to register/expose<br>
them in the global pkg DB due to<br>
<br>
  <a href="https://ghc.haskell.org/trac/ghc/ticket/8919" target="_blank">https://ghc.haskell.org/trac/<u></u>ghc/ticket/8919</a><br>
<br></blockquote><div><br></div><div>IIUC, this comes down to the fact that distros want to install all packages into the global database, whereas the pain point I'm describing here is from users wanting to *avoid* having things in the global database. Perhaps there's a simple solution here: if end-users non-distro installations of GHC unregistered those packages, would it cause them any problems? Perhaps having those packages in the global database is something that *only* distros need.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and as for Cabal, I have been told (maybe Duncan can weigh in...?) that<br>
Haskell implementations need to provide it (together with a `*hc-pkg`<br>
executable) in order to conform to the CABAL specification[1].<br>
<br>
<br></blockquote><div><br></div><div>If that's the case, I would request that we modify the CABAL specification. I wouldn't want us to make a bad technical decision because a spec told us to do so.</div><div><br></div><div>Michael</div></div>