gpio: Haskell GPIO interface, designed specifically for the RaspberryPi.

[ bsd3, hardware, library, program ] [ Propose Tags ]

Please see

[Skip to Readme]




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,
Dependencies base (>=4.9 && <5), directory, exceptions, gpio, monad-control, optparse-generic, safe [details]
License BSD-3-Clause
Copyright 2016 Tyler Olson
Author Tyler Olson
Revised Revision 1 made by HerbertValerioRiedel at 2019-06-01T13:29:30Z
Category Hardware
Home page
Uploaded by tgolson at 2017-11-06T03:51:13Z
Distributions NixOS:
Executables gpio
Downloads 2909 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-11-06 [all 1 reports]

Readme for gpio-

[back to package description]

Haskell GPIO interface, designed specifically for the RaspberryPi.

This library also ships with an executable for directly running gpio commands. Note: when using the executable there are less guarantees about the current state of a pin. For example, when using the library we can be sure that an ActivePin 'Out has already been initialized and configured for writing values, when using the executable we are less sure, and therefore errors might occur.

Note: this package has limited functionality, might be buggy and is not optimized. It works for simple read/write operations on a few pre-defined pins, but still needs a lot more testing.


  • Remove runLineHack when reading GPIO value files.
  • Optimize file reading to only look at first char.
  • Support other pin modes (in/out/up/down/pwm)
  • Support edges
  • Look into GPIO supported file watching
  • Add all pin numbers