
Hi All, Currently debian stable installs ghc 6.12.1. I'd like to use the latest version of repa which is built on ghc 7.0, and my attempts to placate cabal's complaints about the installation of various packages isn't going anywhere. It's not obvious to me that there's an advantage to using debian for ghc if I want to stay on the latest ghc to support various packages. I'm wondering what the best way to maintain the latest ghc while using debian stable. Should I abandon the ghc debian package and install the haskell-platform ? Should I simply build ghc 7.0 independently ? The advantage of building ghc myself would of course be the ability to incorporate latest patches etc, and that seems like a good way to go. Any advice appreciated. Thanks, Brian

Hi, briand@aracnet.com wrote:
Currently debian stable installs ghc 6.12.1.
Is there any reason you're not using say Debian testing? The Debian Haskell Group (of which I am one of the less active members) is doing a magnificent job in bringing Haskell packages to Debian in the form of proper Debian packages. Debian testing already has ghc-7.0.3 and a huge bunch of libraries.
I'd like to use the latest version of repa which is built on ghc 7.0, and my attempts to placate cabal's complaints about the installation of various packages isn't going anywhere.
If you are willing to give up Debian packages for all Haskell related stuff you can install the haskell platform from a binary tarball and then use cabal to manage the various Haskell packages.
It's not obvious to me that there's an advantage to using debian for ghc
Personally, I consider Debian stable really only for critical production servers and low maintenance desktop systems. For a developer, Debian testing or Debian unstable (which is really much more stable than the name suggests) is a better option. Finally, there is the option of pulling Debian source packages from Debian unstable, building them and loading them into your own private repository. I have done that for instance to get ghc-6.12.3 onto a bunch of Ubuntu 8.04 systems. If you are familiar with the Debian packaging system and running a repository, this can work quite well. HTH, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/

Hi, Am Freitag, den 10.06.2011, 17:24 +1000 schrieb Erik de Castro Lopo:
Is there any reason you're not using say Debian testing? The Debian Haskell Group (of which I am one of the less active members) is doing a magnificent job in bringing Haskell packages to Debian in the form of proper Debian packages.
Debian testing already has ghc-7.0.3 and a huge bunch of libraries.
Not quite yet, but ghc-7 should migrate from unstable to testing real soon (e.g. within days). Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

On Fri, 2011-06-10 at 09:51 +0000, Johannes Waldmann wrote:
here's what I usually do: * install ghc from binary package, * build haskell-platform from source. * when necessary, get more recent haskell packages via cabal
Yes, this is definitely the way to go. You want to have the Haskell Platform as a well-defined baseline build environment, and you want to use cabal to manage your development libraries, not apt/dpkg. While cabal isn't perfect, it at least handles a lot more Haskell-specific issues -- like the need to build some libraries against specific versions or flags of other libraries, hashing version configurations, and so on -- that apt/dpkg just doesn't have the Haskell-specific knowledge to deal with. -- Chris Smith

Hi Brian,
Currently debian stable installs ghc 6.12.1.
Testing also doesn't have the new ghc. Here's how I do it: I have a prefix $HOME/local/haskell, where I installed the ghc binaries (downloadable at the ghc main site.) Just use ./configure --prefix=$HOME/local/haskell. Then use the same ./configure command for the Haskell platform. I like to keep stuff easily uninstallable, which is why I chose to have a separate prefix, but you can also just dump into /usr/local. The manual version doesn't require a lot of maintenance, since ghc versions and Haskell platform versions aren't very frequently released. Also, you'd like to migrate to a new version of your compiler consciously anyway, so might as well make that a manual step, seeing as you'll probably read CHANGELOG while it installs :-) Just put your prefix in your path (or don't, if you installed in /usr/local) and you'll have a very low overhead, recent Haskell version. Installation is quick and easy, since you don't have to compile GHC. Regards, Aleks
participants (7)
-
Aleksandar Dimitrov
-
Arlen Cuss
-
briand@aracnet.com
-
Chris Smith
-
Erik de Castro Lopo
-
Joachim Breitner
-
Johannes Waldmann