Personal tools

Raspberry Pi

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Initial page)
 
(GHCi is *not* available for ARM, yet.)
(11 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
== Introduction ==
 
== Introduction ==
   
Raspberry Pi is an [[ARM]] based single-board computer, developed for educational
+
Raspberry Pi is an [[ARM]] based single-board computer, developed for educational purposes, costing USD 25. For more details, see [http://en.wikipedia.org/wiki/Raspberry_Pi the Wikipedia article about Raspberry Pi], or the [http://www.raspberrypi.org/faqs FAQ list].
   
purposes, costing USD 25. For more details, see
+
[[Image:Raspberry_Pi_Beta_Board.jpg]]
   
[http://en.wikipedia.org/wiki/Raspberry_Pi the Wikipedia article about Raspberry Pi], or
+
== Links ==
   
the [http://www.raspberrypi.org/faqs FAQ list].
+
* [http://www.reddit.com/r/haskell/comments/u7cwv/some_observationsproblems_of_getting_haskellghc/ Some observations/problems of getting Haskell/GHC running on the Raspberry Pi] (Reddit)
   
[[Image:Raspberry_Pi_Beta_Board.jpg]]
+
* [http://www.raspberrypi.org/ The official Raspberry Pi site]
   
== Links ==
+
* [http://alenribic.com/posts/2012-08-06-running-haskell-on-raspberry-pi.html Running Haskell on Raspberry Pi] (blog)
   
*
+
* [http://alenribic.com/posts/2012-08-17-raspberry-pi-in-a-haskell-cloud.html Raspberry Pi in a Haskell Cloud] (blog)
   
[http://www.reddit.com/r/haskell/comments/u7cwv/some_observationsproblems_of_getting_has
+
* [http://www.mail-archive.com/haskell-cafe@haskell.org/msg99529.html Re: <nowiki>[Haskell-cafe]</nowiki> Haskell (GHC 7) on ARM]
   
kellghc/ Some observations/problems of getting Haskell/GHC running on the Raspberry Pi]
+
* [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34&t=6655 Haskell/GHC observations on the official Raspberry Pi forum]
   
(Reddit)
+
== GHC Status ==
   
* [http://www.raspberrypi.org/ The official Raspberry Pi site]
+
Of the "official" images currently available from the [http://www.raspberrypi.org/downloads Raspberry Pi Downloads] page, the following versions of GHC are available
  +
  +
* Arch Linux - 6.12.3-1
  +
* Debian Squeeze - [http://packages.debian.org/stable/haskell/ghc6 6.12.1-13]
  +
* Debian Wheezy - [http://packages.debian.org/wheezy/ghc 7.4.1-3]
  +
  +
'''Note:''' GHCi does not currently work on ARM, but it may become available in GHC 7.8. See [http://www.haskell.org/pipermail/haskell-cafe/2013-December/111825.html this post on haskell-cafe] for the status as of December 2013.
   
* [http://www.mail-archive.com/haskell-cafe@haskell.org/msg99529.html Re: [Haskell-cafe]
+
There seemed to be a point where GHCi was [http://www.haskell.org/pipermail/haskell-cafe/2012-June/101704.html merged into version 7.4.2.], and it may still be possible to install it in an experimental manner, but it is not (currently) available in the Debian Raspberry Pi repository. [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34&t=6655 Here is a discussion thread wherein djhuk describes] compiling and installing GHC-7.4.2 via QEMU to the Raspberry Pi, with incomplete GHCi functionality.
   
Haskell (GHC 7) on ARM]
+
== Current Issues ==
  +
The main issues encountered so far is the memory limitations of the device, at 256 MB [[GHC]] will execute fine, but problems will start to arise when using [[cabal-install]] to install new libraries, especially ones with lots of dependencies. Recent model B boards have 512 MB on board [http://www.raspberrypi.org/archives/2180].
   
  +
Potential solutions to this problem have been suggested, including using [http://wiki.qemu.org/Main_Page QEMU] on a more powerful system and thus compiling your application there and copying the resulting binary across to your Raspberry Pi
   
 
== See also ==
 
== See also ==

Revision as of 00:41, 23 December 2013

This article is a stub. You can help by expanding it.

Contents

1 Introduction

Raspberry Pi is an ARM based single-board computer, developed for educational purposes, costing USD 25. For more details, see the Wikipedia article about Raspberry Pi, or the FAQ list.

Raspberry Pi Beta Board.jpg

2 Links

3 GHC Status

Of the "official" images currently available from the Raspberry Pi Downloads page, the following versions of GHC are available

Note: GHCi does not currently work on ARM, but it may become available in GHC 7.8. See this post on haskell-cafe for the status as of December 2013.

There seemed to be a point where GHCi was merged into version 7.4.2., and it may still be possible to install it in an experimental manner, but it is not (currently) available in the Debian Raspberry Pi repository. Here is a discussion thread wherein djhuk describes compiling and installing GHC-7.4.2 via QEMU to the Raspberry Pi, with incomplete GHCi functionality.

4 Current Issues

The main issues encountered so far is the memory limitations of the device, at 256 MB GHC will execute fine, but problems will start to arise when using cabal-install to install new libraries, especially ones with lots of dependencies. Recent model B boards have 512 MB on board [1].

Potential solutions to this problem have been suggested, including using QEMU on a more powerful system and thus compiling your application there and copying the resulting binary across to your Raspberry Pi

5 See also