Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data HelpersError
- printWarning ∷ String → IO ()
- deprecationWarning ∷ String → IO ()
- ensureNewFile ∷ (FilePath → a → IO ()) → FilePath → a → ExceptT HelpersError IO ()
- ensureNewFileLBS ∷ FilePath → ByteString → ExceptT HelpersError IO ()
- pPrintCBOR ∷ ByteString → ExceptT HelpersError IO ()
- readCBOR ∷ FilePath → ExceptT HelpersError IO ByteString
- renderHelpersError ∷ HelpersError → Doc ann
- validateCBOR ∷ CBORObject → ByteString → Either HelpersError Text
Documentation
data HelpersError Source #
CBORPrettyPrintError !DeserialiseFailure | |
CBORDecodingError !DeserialiseFailure | |
IOError' !FilePath !IOException | |
OutputMustNotAlreadyExist FilePath | |
ReadCBORFileFailure !FilePath !Text |
Instances
Show HelpersError Source # | |
Defined in Cardano.CLI.Helpers |
printWarning ∷ String → IO () Source #
deprecationWarning ∷ String → IO () Source #
ensureNewFile ∷ (FilePath → a → IO ()) → FilePath → a → ExceptT HelpersError IO () Source #
Checks if a path exists and throws and error if it does.
ensureNewFileLBS ∷ FilePath → ByteString → ExceptT HelpersError IO () Source #
pPrintCBOR ∷ ByteString → ExceptT HelpersError IO () Source #
renderHelpersError ∷ HelpersError → Doc ann Source #