Oath
newtype Oath a Source #
Constructors
Fields
Defined in Oath
Methods
fmap :: (a -> b) -> Oath a -> Oath b #
(<$) :: a -> Oath b -> Oath a #
pure :: a -> Oath a #
(<*>) :: Oath (a -> b) -> Oath a -> Oath b #
liftA2 :: (a -> b -> c) -> Oath a -> Oath b -> Oath c #
(*>) :: Oath a -> Oath b -> Oath b #
(<*) :: Oath a -> Oath b -> Oath a #
empty :: Oath a #
(<|>) :: Oath a -> Oath a -> Oath a #
some :: Oath a -> Oath [a] #
many :: Oath a -> Oath [a] #
(<>) :: Oath a -> Oath a -> Oath a #
sconcat :: NonEmpty (Oath a) -> Oath a #
stimes :: Integral b => b -> Oath a -> Oath a #
mempty :: Oath a #
mappend :: Oath a -> Oath a -> Oath a #
mconcat :: [Oath a] -> Oath a #
hoistOath :: (forall x. STM x -> STM x) -> Oath a -> Oath a Source #
evalOath :: Oath a -> IO a Source #
oath :: IO a -> Oath a Source #
Lift an IO action into an Oath, forking a thread. When the continuation terminates, it kills the thread. Exception thrown in the thread will be propagated to the result.
delay :: Int -> Oath () Source #
An Oath that finishes once the given number of microseconds elapses
timeout :: Int -> Oath a -> Oath (Maybe a) Source #
Wrap an Oath