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 eff m a. (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 eff m. 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 eff m. MonadEff (wechaty :: WECHATY | eff) m => (String -> Eff (wechaty :: WECHATY | eff) Unit) -> WechatyT eff m Unit

#onLogin Source

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

#onLogout Source

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

#onMessage Source

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

#start Source

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

Re-exports from Wechaty.Types

#WECHATY Source

data WECHATY :: Effect