cloudy-0.1.0.0: CLI tool to easily spin up and control compute instances in various cloud environments
Safe HaskellSafe-Inferred
LanguageHaskell98

Cloudy.Cmd.Scaleway.Utils

Documentation

runScalewayClientM :: (forall x. ClientError -> IO x) -> ClientM a -> IO a Source #

getMaybeOrDefault :: Foldable t => a -> t (Maybe a) -> a Source #

fetchPagedApi :: Monad m => (Maybe PageNum -> m (Headers '[Header "x-total-count" Int] a)) -> (a -> a -> a) -> (a -> Int) -> m a Source #

unfoldM :: Monad m => (s -> m (Maybe (a, s))) -> s -> m [a] Source #