[Haskell-cafe] external git dependency source in .cabal

Ivan Perez ivanperezdominguez at gmail.com
Sun Nov 18 14:56:43 UTC 2018

If you can do this, this is news to me.

See: https://www.haskell.org/cabal/users-guide/developing-packages.html

>From what I understand, you cannot use this to point to repos for
dependencies, only to indicate the repo for the package you are defining.

You'd have to publish pack1 somewhere (on hackage or in your own hackage
server), or use a different tool to declare the dependency. I don't know if
cabal's new-build system addresses this at all.


On Sun, 18 Nov 2018 at 06:54, Fabien R <theedge456 at free.fr> wrote:

> Hello,
> I'm trying to reference an external source of a package within a sandbox,
> using cabal
> source-repository head
>    type: git
>    location: <git URL of pack1>
> executable myExe
>     build-depends: base==, pack1 -any
> But "cabal -v install --only-dependencies" fails:
> cabal: Encountered missing dependencies:
> pack1 -any
> Any hint ?
> --
> Fabien
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20181118/3b216b73/attachment.html>

More information about the Haskell-Cafe mailing list