xbee interface for Haskell