module Ribosome.Api.Sleep where
import Exon (exon)
import Ribosome.Host.Api.Effect (nvimCommand)
import Ribosome.Host.Effect.Rpc (Rpc)
nvimSleep ::
Member Rpc r =>
Int ->
Sem r ()
nvimSleep :: forall (r :: EffectRow). Member Rpc r => Int -> Sem r ()
nvimSleep Int
interval =
Text -> Sem r ()
forall (r :: EffectRow). Member Rpc r => Text -> Sem r ()
nvimCommand [exon|sleep #{show interval}|]
nvimMSleep ::
Member Rpc r =>
Int ->
Sem r ()
nvimMSleep :: forall (r :: EffectRow). Member Rpc r => Int -> Sem r ()
nvimMSleep Int
interval =
Text -> Sem r ()
forall (r :: EffectRow). Member Rpc r => Text -> Sem r ()
nvimCommand [exon|sleep #{show interval}m|]