[Haskell-cafe] confusion about cabal-install install

Brandon Allbery allbery.b at gmail.com
Sat May 10 16:10:03 UTC 2014


On Sat, May 10, 2014 at 11:37 AM, Alexander Solla <alex.solla at gmail.com>wrote:

> But now consider:
>
>     $ cabal --version
>
>     cabal-install version 1.16.0.2
>
>     using version 1.16.0 of the Cabal library
>
>     $ which cabal
>
>     /home/ajs/.cabal/bin/cabal
>
>     $ /home/ajs/.cabal/bin/cabal --version
>
>     cabal-install version 1.20.0.1
>
>     using version 1.20.0.0 of the Cabal library
>
This is why I keep, completely pointlessly, telling people to never ever
use `which`. It lies. But people want the lies and get confused when they
prove to be lies.

Try `type cabal` --- NOT `which cabal` --- to see what is really going on.
Then use `hash -r` to fix it.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140510/d1ae42c3/attachment.html>


More information about the Haskell-Cafe mailing list