<br><br><div class="gmail_quote">On Thu, Jun 16, 2011 at 6:18 PM, Ryan Yates <span dir="ltr">&lt;<a href="mailto:fryguybob@gmail.com">fryguybob@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
There is a nice table in the cabal docs that explains how prefix gets used:<br>
<br>
<a href="http://www.haskell.org/ghc/docs/7.0.4/html/Cabal/builders.html#simple-paths" target="_blank">http://www.haskell.org/ghc/docs/7.0.4/html/Cabal/builders.html#simple-paths</a><br>
<br>
For Vista and above C:\Documents and settings\myusername\ is<br>
C:\Users\myusername.  The equivalent to $HOME on Windows would be<br>
$USERPROFILE but the syntax of expanding an environment variable is<br>
going to depend on the shell you are using:<br>
<br>
cmd window:  cabal install --prefix=%USERPROFILE% --user<br>
PowerShell:  cabal install --prefix=${env:USERPROFILE} --user<br>
msys window:  cabal install --prefix=$USERPROFILE --user<br>
<br>
Note that msys does define $HOME and it is a different physical path<br>
than $USERPROFILE.<br>
<br>
</blockquote><div class="h5"><br>Ryan, thanks!  <br>This win32 $HOME story is clear now. <br>And why not just use:<br>&quot;cabal install&quot;<br>instead of:<br>&quot;cabal install --prefix=%USERPROFILE% --user&quot; <br>
for win32 platform? <br>Where in this case &quot;cabal install&quot; root will be?<br><br><br>
</div></div>