| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Napkin.Run.Types.ErrorReporting
Contents
Documentation
newtype HaskellEvaluationError #
Constructors
| HaskellEvaluationError InterpreterError |
Instances
| Show HaskellEvaluationError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods showsPrec :: Int -> HaskellEvaluationError -> ShowS # show :: HaskellEvaluationError -> String # showList :: [HaskellEvaluationError] -> ShowS # | |
| Eq HaskellEvaluationError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods (==) :: HaskellEvaluationError -> HaskellEvaluationError -> Bool # (/=) :: HaskellEvaluationError -> HaskellEvaluationError -> Bool # | |
data ValidationError #
Constructors
Instances
| Buildable ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods build :: ValidationError -> Builder # | |
| Exception ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods toException :: ValidationError -> SomeException # fromException :: SomeException -> Maybe ValidationError # displayException :: ValidationError -> String # backtraceDesired :: ValidationError -> Bool # | |
| Show ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods showsPrec :: Int -> ValidationError -> ShowS # show :: ValidationError -> String # showList :: [ValidationError] -> ShowS # | |
| Eq ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods (==) :: ValidationError -> ValidationError -> Bool # (/=) :: ValidationError -> ValidationError -> Bool # | |
| ShowExceptionWithPrefix ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods showParts :: ValidationError -> (Text, Text) # | |
| ToNapkinError (NonEmpty ValidationError) # | |
Defined in Napkin.Run.Types.ErrorReporting Methods | |
class Exception a => ShowExceptionWithPrefix a where #
Instances
| ShowExceptionWithPrefix ValidationError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods showParts :: ValidationError -> (Text, Text) # | |
data YamlSpecInterpretError #
Constructors
Instances
| ToNapkinError YamlSpecInterpretError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods | |
data NapkinError #
Constructors
Instances
| Show NapkinError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods showsPrec :: Int -> NapkinError -> ShowS # show :: NapkinError -> String # showList :: [NapkinError] -> ShowS # | |
showNapkinErrorParts :: NapkinError -> NonEmpty (Text, Text) #
withNapkinError :: forall (m :: Type -> Type) e a. (Monad m, ToNapkinError e) => ExceptT e m a -> ExceptT NapkinError m a #
liftNapkinError :: (MonadError NapkinError m, ToNapkinError e) => m (Either e a) -> m a #
type NapkinExceptIO a = ExceptT NapkinError (ResourceT IO) a #
type CLICommand = NapkinExceptIO () #
class ToNapkinError a where #
Methods
toNapkinError :: a -> NapkinError #
Instances
| ToNapkinError SomeException # | |
Defined in Napkin.Run.Types.ErrorReporting Methods | |
| ToNapkinError YamlSpecInterpretError # | |
Defined in Napkin.Run.Types.ErrorReporting Methods | |
| ToNapkinError Text # | |
Defined in Napkin.Run.Types.ErrorReporting Methods toNapkinError :: Text -> NapkinError # | |
| ToNapkinError (NonEmpty ValidationError) # | |
Defined in Napkin.Run.Types.ErrorReporting Methods | |
Orphan instances
| Eq InterpreterError # | |
Methods (==) :: InterpreterError -> InterpreterError -> Bool # (/=) :: InterpreterError -> InterpreterError -> Bool # | |