Wednesday, September 5, 2012

Cabal Reset in Vista

So my Haskell development on my Windows laptop is spread out. So often times when I get back to working on something on it, I get dependency hell cause everything needs updating. The general solution is to just blow away my packages and start from fresh. So in case someone is wondering how this is done in Windows and also just as a bookmark for myself, this is what I did today. I removed the following two directories and did a ghc-pkg recache.

The recache was complaining about not having perms to the global package.cache under Program Files. After a bunch of trial and error, I think the problem wasn't that I didn't have edit rights to that file, but that I didn't have rights to its folder, C:\Program Files\Haskell Platform\2012.2.0.0\lib\package.conf.d. I guess it was trying to delete the file and create a new one or something.

Anyhow, delete these two dirs and do a recache and you should have a clean install. 


This is Vista Home Basic...yeah, I know. I just don't have much need for this windows box, so it's not worth the $$ for me to upgrade to 7.

No comments: