<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Note that if you use the setup-haskell action (<span class="pl-c"><a class="moz-txt-link-freetext" href="https://github.com/actions/setup-haskell">https://github.com/actions/setup-haskell</a>),
        you can get the directory from its outputs, i.e. `</span><span
        class="pl-c"><span class="pl-s">${{
          steps.setup-haskell-cabal.outputs.cabal-store }}</span>`.<br>
        <br>
        Cheers,<br>
        --OM<br>
      </span></p>
    <div class="moz-cite-prefix">On 11/13/20 12:54 PM, Oleg Grenrus
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e14cb051-b22a-e415-1a6c-872031e380a3@iki.fi">
      <pre class="moz-quote-pre" wrap="">cabal-install doesn't use ~/.cabal on Windows.

See
<a class="moz-txt-link-freetext" href="https://hackage.haskell.org/package/directory-1.3.6.1/docs/System-Directory.html#v:getAppUserDataDirectory">https://hackage.haskell.org/package/directory-1.3.6.1/docs/System-Directory.html#v:getAppUserDataDirectory</a>

- Oleg

On 13.11.2020 12.43, Ben Franksen wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">I can't get this to work. It works perfectly fine on Linux and MacOS but
on Windows cabal always re-builds all the dependencies. The cache
post-action on Windows tells me that the cache hasn't changed, which
means cabal actually re-created the ~/.cabal directory exactly as it was
in the cache!

Is this a known bug in cabal on Windows?

Does anyone have a work-around?

Cheers
Ben

_______________________________________________
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>
      <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>