Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
newtype HaskellEvaluationError #
Instances
Eq HaskellEvaluationError # | |
Defined in Napkin.Run.Types.ErrorReporting | |
Show HaskellEvaluationError # | |
Defined in Napkin.Run.Types.ErrorReporting showsPrec :: Int -> HaskellEvaluationError -> ShowS # show :: HaskellEvaluationError -> String # showList :: [HaskellEvaluationError] -> ShowS # |
data ValidationError #
ValidationError_CycleDetectedError (NonEmpty [Ref Table]) | |
ValidationError_NapkinEffectError (Ref Table) NapkinEffectError | |
ValidationError_ProgramValidationError Text |
Instances
Eq ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting (==) :: ValidationError -> ValidationError -> Bool # (/=) :: ValidationError -> ValidationError -> Bool # | |
Show ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting showsPrec :: Int -> ValidationError -> ShowS # show :: ValidationError -> String # showList :: [ValidationError] -> ShowS # | |
Exception ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting | |
Buildable ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting build :: ValidationError -> Builder # | |
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 #
YamlSpecInterpretError_HaskellEvaluationError HaskellEvaluationError | |
YamlSpecInterpretError_PreprocessorArgumentsError Text Text | |
YamlSpecInterpretError_PreprocessorRuntimeError Text Text |
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 CLICommand = ExceptT NapkinError IO () #
type NapkinExceptIO a = ExceptT NapkinError IO a #
class ToNapkinError a where #
toNapkinError :: a -> NapkinError #
Instances
ToNapkinError Text # | |
Defined in Napkin.Run.Types.ErrorReporting toNapkinError :: Text -> NapkinError # | |
ToNapkinError SomeException # | |
Defined in Napkin.Run.Types.ErrorReporting | |
ToNapkinError YamlSpecInterpretError # | |
Defined in Napkin.Run.Types.ErrorReporting | |
ToNapkinError (NonEmpty ValidationError) # | |
Defined in Napkin.Run.Types.ErrorReporting |