Installation of the New Haskell Platform

Before I install it (on on Mac OS X Lion) is there anything, manually, that I need to do in order to keep all of the cabal packages that I've installed, or are the reinstalled automatically? Victor

On Mon, Jun 04, 2012 at 11:04:36AM -0400, Victor Miller wrote:
Before I install it (on on Mac OS X Lion) is there anything, manually, that I need to do in order to keep all of the cabal packages that I've installed, or are the reinstalled automatically?
Neither. If you install a new version of GHC, you must reinstall any cabal packages you want, because they must be recompiled with the new GHC. Note that cabal-install does have a special command cabal install world which (IIUC) is supposed to help automate this process, although I can't vouch for it since I have never tried it. -Brent

On Mon, Jun 04, 2012 at 11:04:36AM -0400, Victor Miller wrote:
Before I install it (on on Mac OS X Lion) is there anything, manually, that I need to do in order to keep all of the cabal packages that I've installed, or are the reinstalled automatically? Neither. If you install a new version of GHC, you must reinstall any cabal packages you want, because they must be recompiled with the new GHC.
Note that cabal-install does have a special command
cabal install world
which (IIUC) is supposed to help automate this process, although I can't vouch for it since I have never tried it.
-Brent
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe I installed it on Windows 7 and then re-installed a lot of packages, it looks ok with exception of some warnings (-fglasgow-exts, for example). But the package stream-fusion could not compile, because it's cabal file has an illegal ghc option: -fno-method-sharing. I commented this out and
Am 04.06.2012 18:48, schrieb Brent Yorgey: then everything worked fine. Nicu

As Brent said, each version of GHC needs to build its own copy of the packages you use in your projects. Conveniently, these are all kept in separate directories by GHC version, so you can leave your old ones around as you compile new ones with the new platform. However... Most users don't want multiple versions installed at once. The Mac Haskell Platform installer, since 2011.4.0.0, installs a command uninstall-hs on your system. You can use that command to uninstall prior versions of GHC and the Platform. You can safely run it either before or after your installation of 2012.2.0.0. It is a very cautious program, and you can just safely run it on the command line - it won't remove anything until explicitly instructed. Pay attention to it's output, including the last few lines which will explain how to proceed with actual removal. -Mark
participants (4)
-
Brent Yorgey
-
Mark Lentczner
-
Nicu Ionita
-
Victor Miller