Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
newtype HaskellEvaluationError #
Instances
Show HaskellEvaluationError # | |
Defined in Napkin.Run.Types.ErrorReporting showsPrec :: Int -> HaskellEvaluationError -> ShowS # show :: HaskellEvaluationError -> String # showList :: [HaskellEvaluationError] -> ShowS # | |
Eq HaskellEvaluationError # | |
Defined in Napkin.Run.Types.ErrorReporting |
data ValidationError #
Instances
Exception ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting | |
Show ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting showsPrec :: Int -> ValidationError -> ShowS # show :: ValidationError -> String # showList :: [ValidationError] -> ShowS # | |
Buildable ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting build :: ValidationError -> Builder # | |
Eq ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting (==) :: ValidationError -> ValidationError -> Bool # (/=) :: ValidationError -> ValidationError -> Bool # | |
ShowExceptionWithPrefix ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting showParts :: ValidationError -> (Text, Text) # | |
ToNapkinError (NonEmpty ValidationError) # | |
Defined in Napkin.Run.Types.ErrorReporting |
class Exception a => ShowExceptionWithPrefix a where #
Instances
ShowExceptionWithPrefix ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting showParts :: ValidationError -> (Text, Text) # |
data YamlSpecInterpretError #
Instances
data NapkinError #
SpecValidationError (NonEmpty ValidationError) | |
RuntimeException SomeException | |
MetaArgsError FilePath Text | |
SpecYamlParseError Text | |
SpecLoadingError YamlSpecInterpretError | |
OtherError Text |
Instances
Show NapkinError # | |
Defined in Napkin.Run.Types.ErrorReporting showsPrec :: Int -> NapkinError -> ShowS # show :: NapkinError -> String # showList :: [NapkinError] -> ShowS # |
showNapkinErrorParts :: NapkinError -> NonEmpty (Text, Text) #
withNapkinError :: (Monad m, ToNapkinError e) => ExceptT e m a -> ExceptT NapkinError m a #
liftNapkinError :: (ToNapkinError e, MonadError NapkinError m) => m (Either e a) -> m a #
type NapkinExceptIO a = ExceptT NapkinError IO a #
type CLICommand = NapkinExceptIO () #
class ToNapkinError a where #
toNapkinError :: a -> NapkinError #
Instances
ToNapkinError SomeException # | |
Defined in Napkin.Run.Types.ErrorReporting | |
ToNapkinError YamlSpecInterpretError # | |
Defined in Napkin.Run.Types.ErrorReporting | |
ToNapkinError Text # | |
Defined in Napkin.Run.Types.ErrorReporting toNapkinError :: Text -> NapkinError # | |
ToNapkinError (NonEmpty ValidationError) # | |
Defined in Napkin.Run.Types.ErrorReporting |