jputcu / serialport

Cross platform haskell library for using the serial port
Other
43 stars 36 forks source link

Use bracket in withSerial #5

Closed basvandijk closed 13 years ago

basvandijk commented 13 years ago

Hi Joris,

You probably want to use bracket in withSerial to ensure that closeSerial is called even when an exception is thrown in the continuation.

jputcu commented 13 years ago

Hello Bas

Thank you for the hint, looks much nicer.