Module

Wechaty

Package
purescript-wechaty
Repository
Lupino/purescript-wechaty

#Wechaty Source

data Wechaty :: Type

#WechatyConfig Source

data WechatyConfig eff m

#WechatyT Source

type WechatyT eff m = ReaderT (WechatyConfig eff m) m

#runWechatyT Source

runWechatyT :: forall a m eff. (m Unit -> Eff (wechaty :: WECHATY | eff) Unit) -> Wechaty -> WechatyT eff m a -> m a

#initWechaty Source

initWechaty :: forall eff. Eff eff Wechaty

#onScan Source

onScan :: forall m eff. MonadEff (wechaty :: WECHATY | eff) m => (String -> Int -> Eff (wechaty :: WECHATY | eff) Unit) -> WechatyT eff m Unit

#showQrcode Source

showQrcode :: forall eff. String -> (Eff eff Unit)

#onError Source

onError :: forall m eff. MonadEff (wechaty :: WECHATY | eff) m => (String -> Eff (wechaty :: WECHATY | eff) Unit) -> WechatyT eff m Unit

#onLogin Source

onLogin :: forall m eff. MonadEff (wechaty :: WECHATY | eff) m => ContactT m Unit -> WechatyT eff m Unit

#onLogout Source

onLogout :: forall m eff. MonadEff (wechaty :: WECHATY | eff) m => ContactT m Unit -> WechatyT eff m Unit

#onMessage Source

onMessage :: forall m eff. MonadEff (wechaty :: WECHATY | eff) m => MessageT m Unit -> WechatyT eff m Unit

#start Source

start :: forall m eff. MonadEff (wechaty :: WECHATY | eff) m => MonadAff (wechaty :: WECHATY | eff) m => WechatyT eff m Unit

Re-exports from Wechaty.Types

#WECHATY Source

data WECHATY :: Effect