[Haskell-beginners] Cabal: Upgrading to the latest version of library

Giovanni Tirloni gtirloni at sysdroid.com
Fri Nov 4 11:30:56 CET 2011


On Wed, Nov 2, 2011 at 1:05 AM, Rustom Mody <rustompmody at gmail.com> wrote:

>
>
> On Wed, Nov 2, 2011 at 1:31 AM, Giovanni Tirloni <gtirloni at sysdroid.com>wrote:
>
>> On Tue, Nov 1, 2011 at 2:04 PM, Hugo Ferreira <hmf at inescporto.pt> wrote:
>>>
>>> I have used Ocaml + the GODI "package manager" and it seems work ok.
>>> GODI allows one to identify newer packages, select those we want to
>>> upgrade and recompiles any dependencies automatically.
>>>
>>>
>> As a newcommer, I feel that this subject has already been discussed at
>> length by the Haskell community and progress is being made.
>>
>> Two articles that I have been referred to in order to understand it
>> better:
>>
>> http://www.vex.net/~trebla/haskell/sicp.xhtml#unsafeInterleave
>>
>> http://ivanmiljenovic.wordpress.com/2010/03/15/repeat-after-me-cabal-is-not-a-package-manager/
>>
>>
> Thanks for those links.
>
>
>>  As a Fedora user, I'm relying on the Haskell SIG work and using the
>> ghc-* RPM packages. When a given Hackage package has not been packaged in
>> Fedora yet, I'm using cabal to supplement but I think that's sub-optimal
>> (from a sysadmin perspective). I'm looking at ways to actually build my own
>> RPMs following their standards. As it's mentioned in one of the article,
>> someone has had the trouble to figure out which packages work best together.
>>
>
> I wonder if you could throw some light on this?
> Say you just have to use the 'sub-optimal' solution and cabal install some
> package foo.
> Later it appears in the rpm list and you can yum install it.
> How do you now cabal uninstall foo?
>
>
I don't know if this is the "right way" but it seems to work:

ghc-pkg unregister <package>
rm  the contents from $HOME/.cabal/package/hackage.haskell.org/<package>

-- 
Giovanni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20111104/bcd87563/attachment-0001.htm>


More information about the Beginners mailing list