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

Changes (2017-10-16)

Fixes: - Better Nix packaging. - Add a few missing files to extra-source-files. (2017-10-02)

Changes: - This project now uses Protolude (0.2.*). I believe the only visible API change is that SysfsException's string type is now Text, instead of String. - Add monad and transformer instances for transformers-base, monad-control, and monad-logger monads. - Use DefaultSignatures and ConstraintKinds to simplify the implementation. - Use hpack to generate the project's Cabal file.

Fixes: - Add some new compile-time warnings. - Remove redundant Functor and Applicative constraints. - Update Travis-CI config to test against more recent Stackage LTS and GHC releases. - Remove most of the Travis-CI macOS jobs; they're really slow. - Get all supported GHC/Stackage LTS versions to build again. (2017-06-28)

Fixes: - Bump QuickCheck bounds. - Bump optparse-applicative bounds. - Stack: update to lts-8.20. (2017-05-24)

Fixes: - Fix project URLs. (2017-05-24)

No changes; copyright for the project has been assigned to Quixoftic, LLC. (2017-02-21)

Fixes: - Fix hlint tests. - Note GHC 8.0.2 compatibility in cabal file. (2017-01-25)

Fixes: - Remove hspec upper bounds. (2017-01-11)

Fixes: - Bump directory bounds. (2016-10-26)

Fixes: - Support for optparse-applicative 0.13.x. - Bump hspec bounds. (2016-07-15)

Fixes: - Bump QuickCheck bounds. (2016-06-08)

Fixes: - Fix Stackage doctests issue (#48). (2016-05-30)

Fixes: - Fix sdist problem with test files (#47) (2016-05-27)

Initial release.

comments powered byDisqus