<div dir="ltr">ghc package depends on exact version of Cabal pacakge. I understand why old package depends on some other old package. I just don't understand why GHC depends on Cabal.<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Mar 11, 2014 at 11:26 AM, Mateusz Kowalczyk <span dir="ltr"><<a href="mailto:fuuzetsu@fuuzetsu.co.uk" target="_blank">fuuzetsu@fuuzetsu.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On 11/03/14 07:19, Maxim Kulkin wrote:<br>
> I played a bit with GHC API and Cabal (and even implemented .cabal support<br>
> for hdevtools) and now I see issues with this approach:<br>
><br>
> 1. GHC depends on Cabal (rly?) and this is most likely some old version of<br>
> Cabal, not the one you use currently (e.g. I use cabal-install and Cabal<br>
> 1.18, but GHC 7.6.3 -- the latest stable -- depends on Cabal 1.16). This<br>
> makes it hard to develop tools that both use GHC API and latest Cabal.<br>
> Hopefully this dependency will be removed in future versions of GHC.<br>
<br>
</div>Actually, 1.16 was the bleeding edge release when 7.6.3 came out so<br>
technically it was new. Old compiler depends on an old version, I don't<br>
see why you find this odd. 7.8 will ship with a newer version (whether<br>
we like this or not).<br>
<br>
Having said that, I don't think GHC API depends on Cabal API, does it?<br>
<div class="im HOEnZb"><br>
> 2. Sometimes you get stuck with types and can't get source code compile and<br>
> GHC API-based tools are of no help in this situation, because they won't be<br>
> able to provide type for some variable in source file because this source<br>
> file contains a syntax/type error in some other part. I'm not sure if GHC<br>
> API can be tweaked to bypass errors and do the best effort of<br>
> parsing/desugaring of other parts of sources with errors. Maybe some<br>
> external parser (haskell-src-exts) should be used for source inspection.<br>
><br>
<br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
Mateusz K.<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>