How to update a cabal dependency automatically

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? Thanks in advance.

-----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 alexander@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-----

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...@plaimi.net javascript: 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...@haskell.org javascript: http://www.haskell.org/mailman/listinfo/haskell-cafe

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
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...@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...@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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
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...@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...@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskel...@haskell.org javascript: http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskel...@haskell.org javascript: http://www.haskell.org/mailman/listinfo/haskell-cafe

Do you have a copy of the error message we can look at? It's hard to say
anything without that. If the output is long, it might be better to put it
up on http://lpaste.net/ instead of including it right in the email.
On Wed, Jul 30, 2014 at 12:54 AM, ye yan
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
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...@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...@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskel...@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskel...@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
Alexander Berntsen
-
Lyndon Maydwell
-
Tikhon Jelvis
-
ye yan