Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.SLCAN
Documentation
Constructors
Transport_Handle Handle | |
Transport_UDP Socket SockAddr |
withSLCANTransport :: Transport -> SLCANConfig -> (Transport -> IO a) -> IO a Source #
sendSLCANMessage :: Transport -> SLCANMessage -> IO () Source #
sendSLCANControl :: Transport -> SLCANControl -> IO () Source #
recvSLCANMessage :: Transport -> IO (Either String SLCANMessage) Source #
sendCANMessage :: Transport -> CANMessage -> IO () Source #
module Network.SLCAN.Types
newtype SLCANT (m :: Type -> Type) a Source #
Instances
MonadTrans SLCANT Source # | |
Defined in Network.SLCAN | |
Monad m => MonadReader Transport (SLCANT m) Source # | |
MonadIO m => MonadIO (SLCANT m) Source # | |
Defined in Network.SLCAN | |
Applicative m => Applicative (SLCANT m) Source # | |
Functor m => Functor (SLCANT m) Source # | |
Monad m => Monad (SLCANT m) Source # | |
MonadIO m => MonadCAN (SLCANT m) Source # | |
Defined in Network.SLCAN | |
MonadUnliftIO m => MonadUnliftIO (SLCANT m) Source # | |
Defined in Network.SLCAN |
data SLCANException Source #
Constructors
SLCANException_ParseError String |
Instances
Exception SLCANException Source # | |
Defined in Network.SLCAN Methods toException :: SLCANException -> SomeException # | |
Show SLCANException Source # | |
Defined in Network.SLCAN Methods showsPrec :: Int -> SLCANException -> ShowS # show :: SLCANException -> String # showList :: [SLCANException] -> ShowS # |
runSLCAN :: (MonadIO m, MonadUnliftIO m) => Transport -> SLCANConfig -> SLCANT m a -> m a Source #