| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusTx.Compiler.Error
Synopsis
- type CompileError uni fun ann = WithContext (Doc ann #
| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusTx.Compiler.Error
data WithContext c e #
An error with some (nested) context. The integer argument to WithContextC represents
the priority of the context when displaying it. Lower numbers are more prioritised.
Constructors
| NoContext e | |
| WithContextC Doc ann # |
withContext :: MonadError (WithContext c e) m => Int -> c -> m a -> m a #
withContextM :: MonadError (WithContext c e) m => Int -> m c -> m a -> m a #
throwPlain :: MonadError (WithContext c e) m => e -> m a #
pruneContext :: Int -> WithContext c e -> WithContext c e #
mapContext :: (c -> c') -> WithContext c e -> WithContext c' e #