<div dir="ltr">I ran into another oddity due to old build artifacts today -- it was easy to fix, but very confusing; cabal repl was exiting with &quot;unrecognised command: repl&quot;.<div><br></div><div>tl/dr; if you see this, delete the old &#39;dist&#39; dir and re-run &#39;cabal configure&#39;.<br>

<div><br></div><div>Here&#39;s a snippit of my shell session to explain in more detail:<div><br></div><div>$ cabal sandbox init</div><div>...</div><div><div> $ cabal --version</div><div>cabal-install version 1.18.0</div>
<div>
using version 1.18.0 of the Cabal library </div><div> $ cabal configure</div><div>Resolving dependencies...</div><div>Configuring pgftransform-0.0.0.1...</div><div> $ cabal repl</div><div>unrecognised command: repl (try --help)</div>

<div> $ cabal --help</div><div>...</div><div>Commands:</div><div>...</div><div>  build        Compile all targets or specific targets.</div><div>  repl         Open an interpreter session for the given target.</div><div>
  sandbox      Create/modify/delete a sandbox.</div>
<div> ...</div></div><div><br></div></div><div>Note that cabal --version and cabal --help indicated that repl /was/ a valid command.</div><div><br></div><div>The issue appears to be that an old dist directory was still hanging around, and (I suspect) the compiled setup.hs build program (which would have been built with an old Cabal) was causing the actual error.  Deleting the dist dir and re-running cabal configure set everything right.</div>

<div><br></div><div>--Rogan</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 5, 2013 at 6:18 AM, Yuri de Wit <span dir="ltr">&lt;<a href="mailto:ydewit@gmail.com" target="_blank">ydewit@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"><div dir="ltr">It is easy enough to recreate the link manually or as easy to run cabal install again, but that is not the point here. The point is that it will bite the next dozen of unsuspecting users since, at first, they have no idea of what is going on.<div>



<br></div><div>In any case, apologies for sending this in this thread as it doesn&#39;t seem the right forum to discuss it.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Sep 5, 2013 at 7:53 AM, Paolo Giarrusso <span dir="ltr">&lt;<a href="mailto:p.giarrusso@gmail.com" target="_blank">p.giarrusso@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"><div dir="ltr"><div>On Wednesday, September 4, 2013 11:41:33 PM UTC+2, Yuri de Wit wrote:<br><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="ltr">Thanks for all the hard work!<div><br></div><div>If you see this in OSX (#1009) while installing cabal 1.18:</div><div><br></div><div><div><b>Warning: could not create a symlink in /Users/lemao/Library/Haskell/<u></u>bin for</b></div>





<div><b>cabal because the file exists there already but is not managed by cabal. You</b></div><div><b>can create a symlink for this executable manually if you wish. The executable</b></div><div><b>file has been installed at</b></div>





<div><b>/Users/user/Library/Haskell/<u></u>ghc-7.6.3/lib/cabal-install-1.<u></u>18.0/bin/cabal</b></div><div><br></div><div>You will need to manually remove the pre-existing 1.16 links in ~/Library/Haskell/bin before installing again.</div>



</div></div></blockquote><div> </div></div><div>Instead of installing again, you can even just recreate the symlink as mentioned by the message (if you know how to do that).</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>