Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data HelpersError
- printWarning :: MonadIO m => String -> m ()
- 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
- printEraDeprecationWarning :: (Typeable era, MonadIO m, ToCardanoEra eon) => eon era -> m ()
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 :: MonadIO m => String -> m () 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 #
validateCBOR :: CBORObject -> ByteString -> Either HelpersError Text Source #
printEraDeprecationWarning :: (Typeable era, MonadIO m, ToCardanoEra eon) => eon era -> m () Source #