jputcu/serialport — pull request #5 by basvandijk (2011-10-13 19:03:52+00:00)
Title: Use bracket in withSerial

Hi Joris,

You probably want to use [bracket](http://hackage.haskell.org/packages/archive/base/latest/doc/html/Control-Exception.html#v:bracket) in `withSerial` to ensure that `closeSerial` is called even when an exception is thrown in the continuation.