The hpio package

[maintain]

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.


[Skip to ReadMe]

Properties

Versions0.8.0.0, 0.8.0.1, 0.8.0.2, 0.8.0.3, 0.8.0.3, 0.8.0.4, 0.8.0.5, 0.8.0.6, 0.8.0.7
Dependenciesasync (>=2.0.2 && <2.2), base (>=4.7.0 && <5), base-compat (>=0.6.0 && <1), bytestring (>=0.10.4 && <0.11), containers (>=0.5.5 && <0.6), directory (>=1.2.1 && <1.3), exceptions (>=0.8.0 && <1), filepath (>=1.3.0 && <1.5), hpio, mtl (>=2.1.3 && <2.3), mtl-compat (>=0.2.1 && <0.3), optparse-applicative (>=0.11.0 && <0.13), QuickCheck (>=2.7.6 && <2.10), text (>=1.2.0 && <1.3), transformers (>=0.3.0 && <0.6), transformers-compat (>=0.4.0 && <1), unix (>=2.7.0 && <2.8), unix-bytestring (>=0.3.7 && <0.4) [details]
LicenseBSD3
CopyrightCopyright (c) 2016, Drew Hess
AuthorDrew Hess <src@drewhess.com>
MaintainerDrew Hess <src@drewhess.com>
Stabilityexperimental
CategorySystem
Home pagehttps://github.com/dhess/hpio
Bug trackerhttps://github.com/dhess/hpio/issues/
Source repositoryhead: git clone git://github.com/dhess/hpio.git
this: git clone git://github.com/dhess/hpio.git(tag v0.8.0.3)
Executableshpio-reader-example, hpio-example, hpio-sysfs-example
UploadedFri Jul 15 14:05:15 UTC 2016 by dhess

Modules

[Index]

Flags

NameDescriptionDefaultType
linux-bbone-testsDisabledManual
test-doctestsEnabledManual
test-hlintEnabledManual
examplesEnabledManual

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for hpio-0.8.0.3

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