{-# LANGUAGE CPP #-} module System.Hardware.Serialport ( -- * Types BaudRate(..) ,StopBits(..) ,Parity(..) ,FlowControl(..) ,SerialPort -- * Configure port -- | You don't need the get or set functions, they are used by openSerial ,SerialPortSettings(..) ,defaultSerialSettings -- * Serial methods ,openSerial ,sendChar ,recvChar ,closeSerial ) where #if defined(mingw32_HOST_OS) import System.Hardware.Serialport.Windows #elif defined(linux_HOST_OS) import System.Hardware.Serialport.Posix import System.Posix.Terminal #endif import System.Hardware.Serialport.Types