cardano-cli-1.30.0
Safe HaskellNone
LanguageHaskell2010

Cardano.CLI.Helpers

Synopsis

Documentation

ensureNewFile ∷ (FilePath → a → IO ()) → FilePath → a → ExceptT HelpersError IO () Source #

Checks if a path exists and throws and error if it does.

pPrintCBOR ∷ LByteString → ExceptT HelpersError IO () Source #

textShowShow a ⇒ a → Text Source #

hushM ∷ ∀ e m a. Monad m ⇒ Either e a → (e → m ()) → m (Maybe a) Source #

Convert an Either to a Maybe and execute the supplied handler in the Left case.