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

Peter Jones mlists at pmade.com
Mon Dec 9 21:45:07 UTC 2013


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.

-- 
Peter Jones, Founder, Devalot.com
Defending the honor of good code



More information about the Beginners mailing list