× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

How can I uninstall a version of a Cabal package?

Utkarsh Upadhyay
Apr 16, 2015
<p>If you are outside a sandbox:</p> <pre><code>ghc-pkg unregister --force regex-compat-0.95.1 </code></pre> <p>If you are inside a <a href="http://www.haskell.org/cabal/users-guide/installing-packages.html#developing-with-sandboxes">cabal sandbox</a>:</p> <pre><code>cabal sandbox hc-pkg -- unregister attoparsec --force </code></pre> <p>The first <code>--</code> is the argument separator for <code>hc-pkg</code>. This runs <code>ghc-pkg</code> in a sandbox aware manner.</p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/10576868/How%20can%20I%20uninstall%20a%20version%20of%20a%20Cabal%20package?/24285503">Stack Overflow</a>.</p>
comments powered by Disqus