Agda-2.6.20240714: A dependently typed functional programming language and proof assistant
Safe HaskellNone
LanguageHaskell2010

Agda.TypeChecking.Errors

Synopsis

Documentation

renderError :: MonadTCM tcm => TCErr -> tcm String Source #

tcErrString :: TCErr -> String Source #

tcWarningsToError :: [TCWarning] -> TCM () Source #

Turns warnings, if any, into errors.

applyFlagsToTCWarningsPreserving :: HasOptions m => Set WarningName -> [TCWarning] -> m [TCWarning] Source #

Depending which flags are set, one may happily ignore some warnings.

getAllWarnings :: (MonadFail m, ReadTCState m, MonadWarning m, MonadTCM m) => WhichWarnings -> m [TCWarning] Source #

Collect all warnings that have accumulated in the state.

dropTopLevelModule :: MonadPretty m => QName -> m QName Source #

Drops the filename component of the qualified name.

topLevelModuleDropper :: (MonadDebug m, MonadTCEnv m, ReadTCState m) => m (QName -> QName) Source #

Produces a function which drops the filename component of the qualified name.

stringTCErr :: String -> TCErr Source #

class Verbalize a where Source #

Methods

verbalize :: a -> String Source #

Instances

Instances details
Verbalize Cohesion Source # 
Instance details

Defined in Agda.TypeChecking.Errors

Methods

verbalize :: Cohesion -> String Source #

Verbalize Hiding Source # 
Instance details

Defined in Agda.TypeChecking.Errors

Methods

verbalize :: Hiding -> String Source #

Verbalize Modality Source # 
Instance details

Defined in Agda.TypeChecking.Errors

Methods

verbalize :: Modality -> String Source #

Verbalize Quantity Source # 
Instance details

Defined in Agda.TypeChecking.Errors

Methods

verbalize :: Quantity -> String Source #

Verbalize Relevance Source # 
Instance details

Defined in Agda.TypeChecking.Errors

Methods

verbalize :: Relevance -> String Source #

Orphan instances

PrettyTCM NegativeUnification Source # 
Instance details

PrettyTCM SplitError Source # 
Instance details

PrettyTCM TCErr Source # 
Instance details

Methods

prettyTCM :: MonadPretty m => TCErr -> m Doc Source #

PrettyTCM TypeError Source # 
Instance details

PrettyTCM UnificationFailure Source # 
Instance details