lighthouse-client-0.2.0.0: Project Lighthouse client SDK
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lighthouse.Utils.General

Synopsis

Documentation

fst3 :: (a, b, c) -> a Source #

Fetches the first element of a triple.

snd3 :: (a, b, c) -> b Source #

Fetches the second element of a triple.

thd3 :: (a, b, c) -> c Source #

Fetches the third element of a triple.

liftMaybe :: Monad m => Maybe a -> MaybeT m a Source #

Lifts an optional value into the maybe transformer.

maybeToRight :: b -> Maybe a -> Either b a Source #

The right element or the given value.

rightToMaybe :: Either a b -> Maybe b Source #

The right side of the either.

(<.$>) :: (a -> b) -> (a, c) -> (b, c) Source #

Maps over the first element in a pair.

(<$.>) :: (a -> b) -> (c, a) -> (c, b) Source #

Maps over the second element in a pair.

(<.$.>) :: (a -> b) -> (a, a) -> (b, b) Source #

Maps over both elements of a pair.

whileM_ :: Monad m => m Bool -> m a -> m () Source #

Loops while the given condition is true.