[Haskell-cafe] How to update a cabal dependency automatically

ye yan haskell.ye.yan at gmail.com
Wed Jul 30 07:54:30 UTC 2014


git add -p works very good in this case, thank you for your advise. Just 
wondering how does cabal solve dependencies?

I updated my cabal file. ghci works find with my development box. but when 
I checkout with other computer I got a dependency error. It seems cabal 
failed to detect the correct library version I am using in ghci. Or just 
because for parsec library I have multiple versions installed? 

On Wednesday, July 30, 2014 9:31:52 AM UTC+9:30, Lyndon Maydwell wrote:
>
> If your project is in git you might be able to take advantage of `git 
> add -p` in combination with `cabal init --overwrite`. 
>
> On Tue, Jul 29, 2014 at 10:32 PM, ye yan <haskell... at gmail.com 
> <javascript:>> wrote: 
> > Thanks for replying. I will be using cabal init --overwrite until the 
> new 
> > feature is complete :D 
> > 
> > 
> > On Tuesday, July 29, 2014 9:18:09 PM UTC+9:30, Alexander Berntsen wrote: 
> >> 
> >> -----BEGIN PGP SIGNED MESSAGE----- 
> >> Hash: SHA256 
> >> 
> >> On 29/07/14 07:52, ye yan wrote: 
> >> > I have been working on a haskell scotty project recently. I have 
> >> > just added configuration support for the project, which added an 
> >> > extra dependency of Control.Lens. My question is: is there a way 
> >> > update .cabal file automatically, just like cabal init but without 
> >> >  recreate .cabal file? 
> >> No. I've been planning to work on that, but haven't had the time yet. 
> >> Thanks for the reminder. 
> >> - -- 
> >> Alexander 
> >> alex... at plaimi.net 
> >> https://secure.plaimi.net/~alexander 
> >> -----BEGIN PGP SIGNATURE----- 
> >> Version: GnuPG v2 
> >> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ 
> >> 
> >> iF4EAREIAAYFAlPXieUACgkQRtClrXBQc7VsQQD+PB/Tyr7S/a5SGE+aN0CgKWHu 
> >> RFcn35Eqi8jgsaPs/rAA/3/IqdT9DyFZGiYZXHm4m7ndSQyQvy8CZ5pVv+5QlcDN 
> >> =h5Ex 
> >> -----END PGP SIGNATURE----- 
> >> _______________________________________________ 
> >> Haskell-Cafe mailing list 
> >> Haskel... at haskell.org 
> >> http://www.haskell.org/mailman/listinfo/haskell-cafe 
> > 
> > 
> > _______________________________________________ 
> > Haskell-Cafe mailing list 
> > Haskel... at haskell.org <javascript:> 
> > http://www.haskell.org/mailman/listinfo/haskell-cafe 
> > 
> _______________________________________________ 
> Haskell-Cafe mailing list 
> Haskel... at haskell.org <javascript:> 
> http://www.haskell.org/mailman/listinfo/haskell-cafe 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140730/edf2979b/attachment.html>


More information about the Haskell-Cafe mailing list