serokell / tzbot

Timezone bot for Slack
Mozilla Public License 2.0
7 stars 2 forks source link

[#51] Revise exceptions handling #55

Closed YuriRomanowski closed 1 year ago

YuriRomanowski commented 1 year ago

Description

Problem: Currently we use ExceptT BotException IO which is inconvenient because both BotException, other sync exceptions and async exceptions should be handled separately.

Solution: Remove ExceptT, use UnliftIO for exceptions handling, also use UnliftIO for asyncs instead of monad-control.

Related issue(s)

Fixed #51

:white_check_mark: Checklist for your Pull Request

Related changes (conditional)

Stylistic guide (mandatory)