I have 6.83 from pkg_add sofar
How upgrade to ghc 7?
anyone?
Goto http://haskell.org/ghc/ and choose the version you want. Then you
can navigate to the binaries section. Choose FreeBSD x86 or x86_64
binary depending on your system.
Example (for a GNU/Linux system):
---------------------------------
1. Say I want GHC 7.0.3
$ wget
http://haskell.org/ghc/dist/7.0.3/ghc-7.0.3-x86_64-unknown-linux.tar.bz2
2. Unpacking
$ tar -xvjf ghc-7.0.3-x86_64-unknown-linux.tar.bz2
$ cd ghc-7.0.3
3. Configure (giving the path to the prefix variable) and do a make install.
$ ./configure --prefix=/usr/local/ghc/7.0.3
sudo make install
4. Then export the path (there are many ways to do this).
I put the path in a file under /etc/profile.d/
$ sudo vim /etc/profile.d/ghc-7.0.3.sh
Then add the path to the file as:
PATH=${PATH}:/usr/local/ghc/7.0.3/bin
Save and exit the vim. Log out and log in. Open Terminal (Ctrl + Alt +
T) and type 'ghc' or 'ghci' to verify.