Monads for GPIO in Haskell.
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.
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.