haskell - GHCi on raspberry pi 2? -


i'm working on few haskell projects run on raspberry pi 2 , version of ghc can install apt-get raspbian (7.4.1). has no ghci though, prevents vital packages (like vector) compiling. i've seen few rumors being able later versions of ghc (with ghci) onto pi, nothing recent. entry on haskell wiki looks couple years out of date. has had luck this?

i have had luck this!

sagemuej@sagemuej-aspire-5742g:~$ ssh pi-loc
linux raspberrypi 3.12.28+ #709 preempt mon sep 8 15:28:00 bst 2014 armv6l

programs included debian gnu/linux system free software;
exact distribution terms each program described in the
individual files in /usr/share/doc/*/copyright.

debian gnu/linux comes absolutely no warranty, extent
permitted applicable law.
last login: wed apr  1 00:24:44 2015 sagemuej-aspire-5742g.localdomain
pi@raspberrypi:~$ ghci
ghci, version 7.8.2: http://www.haskell.org/ghc/  :? help
loading package ghc-prim ... linking ... done.
loading package integer-gmp ... linking ... done.
loading package base ... linking ... done.
prelude> :m +data.vector
prelude data.vector> fromlist [1,2,3]
loading package array-0.5.0.0 ... linking ... done.
loading package deepseq-1.3.0.2 ... linking ... done.
loading package primitive-0.5.2.1 ... linking ... done.
loading package vector-0.10.9.1 ... linking ... done.
fromlist [1,2,3]

ain't nice?

it full ghc 7.8. had bootstrap source, though. worked pretty fine normal setup instructions if recall correctly – though took ages build (like, half week).

the main issue memory: of larger modules, compiler needs more π can offer when running without x. did simply, connected usb hard drive , set swap partition on it. of course, swapping makes slower, it'll succeed. did me, @ least.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -