<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>In your <tt>.cabal</tt> file, yes, but the <tt>cabal.project</tt>
      file can reference external packages. It has a slightly different
      syntax, though. <br>
    </p>
    <p>I don't think it's supported with <tt>cabal-install</tt>
      2.0.0.1. You may have to use HEAD instead of 2.4.0.0, I don't
      know. <br>
    </p>
    <div class="moz-cite-prefix">On 11/18/18 9:05 AM, Brandon Allbery
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKFCL4XO30ATrc7-aDy886hQmqJ3_1Z3qB00AS=qT3+S3cCytw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">It doesn't. The source repo is for hackage
        documentation, not package retrieval.</div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Sun, Nov 18, 2018 at 9:57 AM Ivan Perez <<a
            href="mailto:ivanperezdominguez@gmail.com"
            moz-do-not-send="true">ivanperezdominguez@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div>If you can do this, this is news to me.</div>
                  <div><br>
                  </div>
                  <div>See: <a
href="https://www.haskell.org/cabal/users-guide/developing-packages.html"
                      target="_blank" moz-do-not-send="true">https://www.haskell.org/cabal/users-guide/developing-packages.html</a></div>
                  <div><br>
                  </div>
                  <div>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.</div>
                  <div><br>
                  </div>
                  <div>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.<br>
                  </div>
                  <div><br>
                  </div>
                  <div>Ivan<br>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr">On Sun, 18 Nov 2018 at 06:54, Fabien R <<a
                href="mailto:theedge456@free.fr" target="_blank"
                moz-do-not-send="true">theedge456@free.fr</a>> wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
              I'm trying to reference an external source of a package
              within a sandbox, using cabal <a href="http://2.0.0.1"
                rel="noreferrer" target="_blank" moz-do-not-send="true">2.0.0.1</a>:<br>
              <br>
              source-repository head<br>
                 type: git<br>
                 location: <git URL of pack1><br>
              <br>
              executable myExe<br>
                  build-depends: base==4.10.1.0, pack1 -any<br>
              <br>
              But "cabal -v install --only-dependencies" fails:<br>
              <br>
              cabal: Encountered missing dependencies:<br>
              pack1 -any<br>
              <br>
              Any hint ?<br>
              <br>
              --<br>
              Fabien<br>
              _______________________________________________<br>
              Haskell-Cafe mailing list<br>
              To (un)subscribe, modify options or view archives go to:<br>
              <a
                href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe"
                rel="noreferrer" target="_blank" moz-do-not-send="true">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
              Only members subscribed via the mailman list are allowed
              to post.</blockquote>
          </div>
          _______________________________________________<br>
          Haskell-Cafe mailing list<br>
          To (un)subscribe, modify options or view archives go to:<br>
          <a
            href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
          Only members subscribed via the mailman list are allowed to
          post.</blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature"
        data-smartmail="gmail_signature">
        <div dir="ltr">
          <div>
            <div dir="ltr">
              <div>brandon s allbery kf8nh</div>
              <div><a href="mailto:allbery.b@gmail.com" target="_blank"
                  moz-do-not-send="true">allbery.b@gmail.com</a></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
    </blockquote>
  </body>
</html>