<div dir="ltr">git add -p works very good in this case, thank you for your advise. Just wondering how does cabal solve dependencies?<div><br></div><div>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?<span style="font-size: 13px;"> </span></div><div><br>On Wednesday, July 30, 2014 9:31:52 AM UTC+9:30, Lyndon Maydwell wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">If your project is in git you might be able to take advantage of `git
<br>add -p` in combination with `cabal init --overwrite`.
<br>
<br>On Tue, Jul 29, 2014 at 10:32 PM, ye yan <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lGVNJTrKGDcJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">haskell...@gmail.com</a>> wrote:
<br>> Thanks for replying. I will be using cabal init --overwrite until the new
<br>> feature is complete :D
<br>>
<br>>
<br>> On Tuesday, July 29, 2014 9:18:09 PM UTC+9:30, Alexander Berntsen wrote:
<br>>>
<br>>> -----BEGIN PGP SIGNED MESSAGE-----
<br>>> Hash: SHA256
<br>>>
<br>>> On 29/07/14 07:52, ye yan wrote:
<br>>> > I have been working on a haskell scotty project recently. I have
<br>>> > just added configuration support for the project, which added an
<br>>> > extra dependency of Control.Lens. My question is: is there a way
<br>>> > update .cabal file automatically, just like cabal init but without
<br>>> >  recreate .cabal file?
<br>>> No. I've been planning to work on that, but haven't had the time yet.
<br>>> Thanks for the reminder.
<br>>> - --
<br>>> Alexander
<br>>> <a>alex...@plaimi.net</a>
<br>>> <a href="https://secure.plaimi.net/~alexander" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fsecure.plaimi.net%2F~alexander\46sa\75D\46sntz\0751\46usg\75AFQjCNFAe0xUkbfhnDRk_591K3-8MW2QVg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fsecure.plaimi.net%2F~alexander\46sa\75D\46sntz\0751\46usg\75AFQjCNFAe0xUkbfhnDRk_591K3-8MW2QVg';return true;">https://secure.plaimi.net/~<wbr>alexander</a>
<br>>> -----BEGIN PGP SIGNATURE-----
<br>>> Version: GnuPG v2
<br>>> Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.enigmail.net%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEmzvPO3jS2yzcUMn8rNiYnCtPc-g';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.enigmail.net%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEmzvPO3jS2yzcUMn8rNiYnCtPc-g';return true;">http://www.enigmail.net/</a>
<br>>>
<br>>> iF4EAREIAAYFAlPXieUACgkQRtClrX<wbr>BQc7VsQQD+PB/Tyr7S/a5SGE+<wbr>aN0CgKWHu
<br>>> RFcn35Eqi8jgsaPs/rAA/3/<wbr>IqdT9DyFZGiYZXHm4m7ndSQyQvy8CZ<wbr>5pVv+5QlcDN
<br>>> =h5Ex
<br>>> -----END PGP SIGNATURE-----
<br>>> ______________________________<wbr>_________________
<br>>> Haskell-Cafe mailing list
<br>>> <a>Haskel...@haskell.org</a>
<br>>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.haskell.org%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNHiVycCM53czUVzPma4Fkb_wPqP2A';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.haskell.org%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNHiVycCM53czUVzPma4Fkb_wPqP2A';return true;">http://www.haskell.org/<wbr>mailman/listinfo/haskell-cafe</a>
<br>>
<br>>
<br>> ______________________________<wbr>_________________
<br>> Haskell-Cafe mailing list
<br>> <a href="javascript:" target="_blank" gdf-obfuscated-mailto="lGVNJTrKGDcJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">Haskel...@haskell.org</a>
<br>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.haskell.org%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNHiVycCM53czUVzPma4Fkb_wPqP2A';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.haskell.org%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNHiVycCM53czUVzPma4Fkb_wPqP2A';return true;">http://www.haskell.org/<wbr>mailman/listinfo/haskell-cafe</a>
<br>>
<br>______________________________<wbr>_________________
<br>Haskell-Cafe mailing list
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="lGVNJTrKGDcJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">Haskel...@haskell.org</a>
<br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.haskell.org%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNHiVycCM53czUVzPma4Fkb_wPqP2A';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.haskell.org%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNHiVycCM53czUVzPma4Fkb_wPqP2A';return true;">http://www.haskell.org/<wbr>mailman/listinfo/haskell-cafe</a>
<br></blockquote></div></div>