biscuit-haskell-0.4.0.0: Library support for the Biscuit security token
Copyright© Clément Delafargue 2021
LicenseMIT
Maintainerclement@delafargue.name
Safe HaskellNone
LanguageHaskell2010

Auth.Biscuit.Utils

Description

 
Synopsis

Documentation

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

Exactly like maybeToRight from the either package, but without the dependency footprint

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

Exactly like rightToMaybe from the either package, but without the dependency footprint

anyM :: (Foldable t, Monad m) => (a -> m Bool) -> t a -> m Bool Source #

allM :: (Foldable t, Monad m) => (a -> m Bool) -> t a -> m Bool Source #

setFilterM :: (Ord a, Monad m) => (a -> m Bool) -> Set a -> m (Set a) Source #

foldMapM :: (Monoid b, Monad m, Foldable f) => (a -> m b) -> f a -> m b Source #

mapMaybeM :: Monad m => (a -> m (Maybe b)) -> [a] -> m [b] Source #