About

Metadata

  • Last updated , by dhess
  • License BSD-3-Clause
  • Categories Systems Programming
  • Maintained by: Drew Hess <src@drewhess.com>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.6.3
  2. 8.4.4
  3. 8.2.2
  4. 8.0.2

Package Flags

Use the -f option with cabal commands to enable 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 (off by default)

    Build hlint test

Readme

hpio

hpio provides support for writing GPIO programs in Haskell. It includes an embedded DSL for writing platform-independent programs, along with low-level monads and IO functions which provide direct access to each supported platform's native GPIO API.

Currently only the Linux sysfs GPIO filesystem is supported, but support for other Unix GPIO platforms is planned.

For details on usage, see the included tutorial module, or the examples directory in the source distribution.

Travis CI build status