bcc-cli-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.CLI.Helpers

Synopsis

Documentation

data HelpersError Source #

Instances

Instances details
Show HelpersError Source # 
Instance details

Defined in Bcc.CLI.Helpers

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.