@hackage hpio0.9.0.0

Monads for GPIO in Haskell

  • Installation

  • Tested Compilers

  • Dependencies (18)

  • Dependents (3)

    @hackage/pinpon, @hackage/mellon-gpio, @hackage/mellon-web
  • Package Flags

      examples
       (on by default)

      Build the example programs

      linux-bbone-tests
       (off by default)

      Enable Linux BeagleBone-specific tests. Disabled by default. See testSystemGPIOLinuxSysfs/BeagleBoneSpec.hs for requirements. Run with "cabal test -flinux-bbone-tests".

      test-doctests
       (on by default)

      Build doctests

      test-hlint
       (on by default)

      Build hlint test

This package provides an embedded DSL for writing cross-platform GPIO programs in Haskell. Currently only Linux is supported (via the sysfs filesystem), but other Unix GPIO platforms will be supported in the future.

Monads and low-level actions are also provided for each supported platform's native GPIO API, if you want to program directly to the platform API.

Example programs are provided in the examples directory of the source code distribution. There is also a System.GPIO.Tutorial module, which explains how to use the cross-platform DSL.