proof-assistant-bot-0.2.0: Telegram bot for proof assistants
Safe HaskellNone
LanguageHaskell2010

Proof.Assistant.Helpers

Synopsis

Documentation

toInt :: forall a b. (Num b, Integral b, Coercible a b) => a -> Int Source #

Cast something to Int.

t2s :: Coercible a Text => a -> String Source #

Cast something to String.

asyncWait :: Time -> IO () Source #

Wait N seconds.

dropCommand :: ByteString -> ByteString Source #

If input starts with / drop the whole command with a space and return the remaining part.

dropSubCommand :: ByteString -> ByteString Source #

Drop not only command but sub-command too.

handleErrorMaybe :: IO ByteString -> IO ByteString Source #

Wrap IO action with processError and return error message as ByteString.