Cross platform serial port library.

Version on this page:0.4.7
LTS Haskell 6.35:0.4.7
Stackage Nightly 2016-05-25:0.4.7
Latest on Hackage:0.5.4

See all snapshots serialport appears in

BSD-3-Clause licensed by Joris Putcuyps
This version can be pinned in stack with:serialport-0.4.7@sha256:faff483f73c8e8e9661dae3788795bb0f4a38413a49fccb77bcdc6827af50182,1430

Module documentation for 0.4.7

Depends on 3 packages(full list with versions):
Used by 1 package in lts-6.35(full list with versions):


  • Cross platform: at least Linux, Windows and Mac OS.



Prepare Arduino

  • Upload arduino code using Arduino IDE or avrdude

Prepare haskell test program

  • Configure cabal to build the tests: cabal configure –enable-tests.
  • Build: cabal build

Running the tests

  • Run the tests: cabal test –test-options=”/dev/ttyACM0 /dev/ttyUSB0”


4.7 (28/08/2014)

  • Open in non-blocking mode, immediately reverting to blocking to fix OS-X problem