[Haskell-beginners] Cabal build dependency using a git repo

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Tue Dec 10 01:23:50 UTC 2013


On 09/12/13 23:02, Michael Baker wrote:
> On Mon, Dec 9, 2013 at 3:45 PM, Peter Jones <mlists at pmade.com> wrote:
>>
>> Michael Baker <michaeltbaker at gmail.com> writes:
>>> I have a library which isn't on Hackage that I would like to use as a
> build
>>> dependency in another project. In Rubygems you can provide a git
> repository
>>> in the absence of an actual Rubygems repository.
>>
>> Use a git submodule (or place the source code to the package anywhere on
>> your file system) then use `cabal sandbox add-source <path>`.  Provided
>> of course that you're using cabal sandboxes.
> 
> What is commonly done if you aren't using sandboxes? I would rather not use
> them in an effort to make installing this project easier on my users,
> because the current Haskell Platform doesn't have sandboxes yet.
> 
> 
> 
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
> 
Sandboxes are for development. If you really want to make it easy for
your users, publish your other package to Hackage. If that's not an
option, perhaps require them to install the other package manually
first? Maybe provide a script which fetches sources and cabal installs.

-- 
Mateusz K.


More information about the Beginners mailing list