<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <style id="EHTipGlobalStyle">.EHTipToolTip * {background: inherit;font-family: inherit;font-size: inherit;font-size-adjust: none;font-stretch: normal;line-height: inherit;font-variant: normal;border: 0px;text-transform: inherit;color: inherit;font-style: inherit;text-decoration: inherit;margin: 0px 0px 0px 0px;padding: 0px 0px 0px 0px;float: none;display: inline;cursor: default;}
.EHTipReplacer, .EHTipKey, .EHTipAudio {cursor: pointer;}
.EHTipToolTip hr {margin: 0.4em 0;display: block;border: 1px inset;}
.EHTipTranslation {font-style: normal;}
.EHTipTranslation a {color: #000099;font-style: normal;text-decoration: none;}
.EHTipTranslation a:hover {background: inherit;color: #000000;text-decoration: underline;}
</style>
  </head>
  <body style="background-color: rgb(255, 255, 255); color: rgb(0, 0,
    0);" bgcolor="#FFFFFF" text="#000000">
    Hi <span style="color:#000000;" class="headerSpan">Krzysztof,<br>
      <br>
      No, it doesn't. Just tried it.<br>
      <br>
      vlatko<br>
    </span><br>
    <blockquote style="border-left: 2px solid #330033 !important;
      border-right: 2px solid #330033 !important; padding: 0px 15px 0px
      15px; margin: 8px 2px;"
cite="mid:CAM7aEVE9e0d6WK+1Qb_uf2RyduRdwALB2B-8ayrvsqeypqg6zQ@mail.gmail.com"
      type="cite"><!--[if !IE]><DIV style="border-left: 2px solid #330033; border-right: 2px solid #330033;  padding: 0px 15px; margin: 2px 0px;"><![endif]--><span
        style="color:#000000;" class="headerSpan">
        <div class="moz-cite-prefix">-------- Original Message --------<br>
          Subject: Re: [Haskell-cafe] Specifying cabal sandbox flag for
          local package<br>
          From: Krzysztof SkrzÄ™tnicki <a class="moz-txt-link-rfc2396E" href="mailto:gtener@gmail.com"><gtener@gmail.com></a><br>
          To: <a class="moz-txt-link-abbreviated" href="mailto:vlatko.basic@gmail.com">vlatko.basic@gmail.com</a><br>
          Date: 03.07.2014 19:54<br>
        </div>
        <br>
        <br>
      </span>
      <p>Maybe cpp-options will work here?</p>
      <div class="gmail_quote">03-07-2014 19:32, "Vlatko Basic" <<a
          moz-do-not-send="true" href="mailto:vlatko.basic@gmail.com">vlatko.basic@gmail.com</a>>
        napisaÅ‚(a):<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Hi Anthony,<br>
          <br>
          I can install it manually, I'm just trying to find out if a
          solution exist to tell cabal to use a flag for compiling an
          external package, i.e. to treat it as if there is no flag.<br>
          <br>
          Something like "add-source-flags" would do. :-)<br>
          <br>
          <br>
          I also tried 'ghc-options: -DFLAG' in project's cabal file,
          but no luck.<br>
          <br>
          <br>
          vlatko<br>
          <br>
          -------- Original Message Â --------<br>
          Subject: Re: [Haskell-cafe] Specifying cabal sandbox flag for
          local package<br>
          From: Anthony Cowley <<a moz-do-not-send="true"
            href="mailto:acowley@seas.upenn.edu" target="_blank">acowley@seas.upenn.edu</a>><br>
          To: <a moz-do-not-send="true"
            href="mailto:vlatko.basic@gmail.com" target="_blank">vlatko.basic@gmail.com</a><br>
          Cc: haskell-cafe <<a moz-do-not-send="true"
            href="mailto:haskell-cafe@haskell.org" target="_blank">haskell-cafe@haskell.org</a>><br>
          Date: 03.07.2014 19:24<br>
          <br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            On Thu, Jul 3, 2014 at 12:47 PM, Vlatko Basic <<a
              moz-do-not-send="true"
              href="mailto:vlatko.basic@gmail.com" target="_blank">vlatko.basic@gmail.com</a>>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              Hello Cafe,<br>
              <br>
              I have a local forked package and added its path to
              sandboxed project with<br>
              Â  'cabal sandbox add-source PATH'.<br>
              <br>
              However, to build that package I have to specify a flag to
              'cabal install'.<br>
              In other words I can't install it by<br>
              Â  Â 'cabal install --only-dependencies',<br>
              but separately with<br>
              Â  Â 'cabal install PACKAGE -fFLAG'.<br>
              <br>
              Is there a way to tell cabal sandbox (or in project.cabal)
              to always use<br>
              some flag(s) for compiling a (particular) package in local
              path?<br>
            </blockquote>
            <br>
            A way of side stepping this problem is to setup a sandbox in
            the<br>
            forked project directory with "cabal sandbox init<br>
            --sandbox=../MyProject/.cabal-sandbox", then you can run
            "cabal<br>
            install --flags" in the forked project directory, and it
            will install<br>
            to the sandbox for your downstream project.<br>
            <br>
            Anthony<br>
            <br>
          </blockquote>
          _______________________________________________<br>
          Haskell-Cafe mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
          <a moz-do-not-send="true"
            href="http://www.haskell.org/mailman/listinfo/haskell-cafe"
            target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
        </blockquote>
      </div>
      <!--[if !IE]></DIV><![endif]--></blockquote>
    <br>
  </body>
</html>