cardano-api-8.36.1.1: The cardano api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Utils

Description

Internal utils for the other Api modules

Synopsis

Documentation

(?!) :: Maybe a -> e -> Either e a Source #

(?!.) :: Either e a -> (e -> e') -> Either e' a Source #

formatParsecError :: ParseError -> String Source #

failEitherWith :: MonadFail m => (e -> String) -> Either e a -> m a Source #

note :: MonadFail m => String -> Maybe a -> m a Source #

runParsecParser :: Parser a -> Text -> Parser a Source #

textShow :: Show a => a -> Text Source #

modifyWith :: (a -> a) -> a -> a Source #

Aids type inference. Use this function to ensure the value is a function that modifies a value.

CLI option parsing

bounded :: forall a. (Bounded a, Integral a, Show a) => String -> ReadM a Source #