Re: [Haskell-cafe] Working with multiple projects

2009-11-11 Thread Martijn van Steenbergen

Tony Morris wrote:

I have two projects that I intend to put on hackage soon. One depends
on the other. I have cabaled both. I am wondering how others work
with this kind of set up where changes are made to both libraries as
they work.


You just update and re-upload the packages as necessary. It really helps 
here if you follow the versioning guidelines:


http://www.haskell.org/haskellwiki/Package_versioning_policy

HTH,

Martijn.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Working with multiple projects

2009-11-11 Thread Tony Morris
I don't want to have to upload every time I make a minor change as I am
working. Surely there is an easier way.

Martijn van Steenbergen wrote:
 Tony Morris wrote:
 I have two projects that I intend to put on hackage soon. One depends
 on the other. I have cabaled both. I am wondering how others work
 with this kind of set up where changes are made to both libraries as
 they work.

 You just update and re-upload the packages as necessary. It really
 helps here if you follow the versioning guidelines:

 http://www.haskell.org/haskellwiki/Package_versioning_policy

 HTH,

 Martijn.



-- 
Tony Morris
http://tmorris.net/


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


RE: [Haskell-cafe] Working with multiple projects

2009-11-11 Thread Sittampalam, Ganesh
To install a package from local sources, just run 'cabal install' in the
directory with the package's .cabal file.

Tony Morris wrote:
 I don't want to have to upload every time I make a minor change as I
 am working. Surely there is an easier way. 
 
 Martijn van Steenbergen wrote:
 Tony Morris wrote:
 I have two projects that I intend to put on hackage soon. One
 depends on the other. I have cabaled both. I am wondering how
 others work with this kind of set up where changes are made to both
 libraries as they work.
 
 You just update and re-upload the packages as necessary. It really
 helps here if you follow the versioning guidelines:
 
 http://www.haskell.org/haskellwiki/Package_versioning_policy
 
 HTH,
 
 Martijn.


=== 
 Please access the attached hyperlink for an important electronic 
communications disclaimer: 
 http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
 
=== 
 
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Working with multiple projects

2009-11-11 Thread Felipe Lessa
On Wed, Nov 11, 2009 at 10:26:32AM -, Sittampalam, Ganesh wrote:
 To install a package from local sources, just run 'cabal install' in the
 directory with the package's .cabal file.

You can even have some kind of script like

cd lib1
cabal install || exit 1
cd ../lib2
cabal install || exit 2

--
Felipe.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Working with multiple projects

2009-11-11 Thread Sönke Hahn
On Wednesday 11 November 2009 08:23:53 am Tony Morris wrote:
 I have two projects that I intend to put on hackage soon. One depends
 on the other. I have cabaled both. I am wondering how others work
 with this kind of set up where changes are made to both libraries as
 they work.
 

What i did in situations like this, is the following:

If B depends on A:

1. Uninstall A (for not mistakenly link to an old version.)
2. Add the source directories of a local copy of A to the src-dirs in the 
cabal file of B.
3. remove the dependency of A in the cabal file of B.

I know, that this is not very elegant, though. You end up changing your cabal 
file very often :(

If you could tell cabal, which cabal file to use, the situation would be a 
little better, i think.

Sönke
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe