Hopefully the following will help others wishing to run haskell on the 'Pi. Note that the ARM version of GHC currently does not support GHCI.
To install you simply need to do the following
- Code: Select all
sudo pacman -S ghc
If you get an error when attempting to compile a haskell source file
- Code: Select all
[daniel@alarmpi ~]$ ghc test.hs -o test
ghc: could not execute: /usr/lib/distcc/bin/gcc
Then you will need to install distcc
- Code: Select all
sudo pacman -S distcc
and finally
- Code: Select all
[daniel@alarmpi ~]$ ghc test.hs -o test
[daniel@alarmpi ~]$./test
Hello world!