Copyright | (c) Yuto Takano (2021) |
---|---|
License | MIT |
Maintainer | moa17stock@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
WARNING
This module is considered internal.
The Package Versioning Policy does not apply.
The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.
Description
This module provides useful utility functions used in discord-haskell-voice.
Synopsis
- tshow :: Show a => a -> Text
- maybeToRight :: a -> Maybe b -> Either a b
- doOrTimeout :: Int -> IO a -> IO (Maybe a)
- killWkThread :: Weak ThreadId -> IO ()
Documentation
maybeToRight :: a -> Maybe b -> Either a b Source #
maybeToRight
puts the maybe value into the right hand side of the Either,
with a default value provided for the Left as the first argument.