Questions tagged [haskell]

a standardized, general-purpose, purely functional programming language with non-strict semantics and strong static typing.

Some related information is found here: https://wiki.haskell.org/Raspberry_Pi

6 questions
6
votes
1 answer

How do I compile cabal?

I am using Arch Linux ARM with ghc 6.12.3-1 and gcc 4.7.1-5. When I try to compile cabal[TAR] using: sh bootstrap.sh Error Checking installed packages for ghc-6.12.3... Cabal-1.14.0 will be downloaded and installed. transformers-0.3.0.0 will be…
ArchHaskeller
  • 1,435
  • 12
  • 35
5
votes
4 answers

Raspberry pi control GPIO with Haskell

I'm working on an home automation system with the raspberry pi. Currently I use python or C to control the GPIO and haskell/yesod for controlling everything from pc/ipad/phone... But I would like to control the GPIO without using python or C. So…
Joachim
  • 53
  • 5
1
vote
2 answers

How do I compile GHC if it depends on itself?

I am using Arch Linux Arm hard float and there isn't any binary packages for GHC available for armv6. How would you cross compile GHC for the Raspberry Pi so that I can compile Haskell code? Is the .deb package compatible with the Arch Linux ARM…
ArchHaskeller
  • 1,435
  • 12
  • 35
1
vote
0 answers

How to cross-compile a binary for a Raspberry Pi written in Haskell in Ubuntu Linux?

In the past I have compiled binaries for different architectures on an x86_x64 with the resulting target binary generated for a different architecture; For instance the target binary might be for something like an IA64 or an ARM processor using…
leeand00
  • 714
  • 2
  • 9
  • 23
0
votes
0 answers

bcm2835 library default SPI clock divider / Bosch BMP280 / Haskell HPi

I'm currently trying to access a Bosch BMP280 pressure sensor from Haskell using the HPi wrapper for the bcm2835 library. I have no experience in handling SPI at all and as documentation is extremely brief / sparse, I had no success trying to…
0
votes
1 answer

Is it possible to use Haskell on Arch Linux ARM?

There isn't a ghc package for armv6, which is what the pi uses. It does not need to be able to compile on the pi, just run on it.
Christopher King
  • 119
  • 1
  • 12