Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- renderError :: MonadTCM tcm => TCErr -> tcm String
- prettyError :: MonadTCM tcm => TCErr -> tcm Doc
- tcErrString :: TCErr -> String
- prettyTCWarnings' :: [TCWarning] -> TCM [Doc]
- prettyTCWarnings :: [TCWarning] -> TCM String
- tcWarningsToError :: [TCWarning] -> TCM ()
- applyFlagsToTCWarningsPreserving :: HasOptions m => Set WarningName -> [TCWarning] -> m [TCWarning]
- applyFlagsToTCWarnings :: HasOptions m => [TCWarning] -> m [TCWarning]
- getAllUnsolvedWarnings :: (MonadFail m, ReadTCState m, MonadWarning m, MonadTCM m) => m [TCWarning]
- getAllWarningsPreserving :: (MonadFail m, ReadTCState m, MonadWarning m, MonadTCM m) => Set WarningName -> WhichWarnings -> m [TCWarning]
- getAllWarnings :: (MonadFail m, ReadTCState m, MonadWarning m, MonadTCM m) => WhichWarnings -> m [TCWarning]
- getAllWarningsOfTCErr :: TCErr -> TCM [TCWarning]
- dropTopLevelModule :: QName -> TCM QName
- topLevelModuleDropper :: (MonadDebug m, MonadTCEnv m, ReadTCState m) => m (QName -> QName)
- stringTCErr :: String -> TCErr
- explainWhyInScope :: forall m. MonadPretty m => WhyInScopeData -> m Doc
- class Verbalize a where
- verbalize :: a -> String
Documentation
renderError :: MonadTCM tcm => TCErr -> tcm String Source #
tcErrString :: TCErr -> String Source #
prettyTCWarnings :: [TCWarning] -> TCM 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.
applyFlagsToTCWarnings :: HasOptions m => [TCWarning] -> m [TCWarning] Source #
getAllUnsolvedWarnings :: (MonadFail m, ReadTCState m, MonadWarning m, MonadTCM m) => m [TCWarning] Source #
getAllWarningsPreserving :: (MonadFail m, ReadTCState m, MonadWarning m, MonadTCM m) => Set WarningName -> WhichWarnings -> m [TCWarning] Source #
getAllWarnings :: (MonadFail m, ReadTCState m, MonadWarning m, MonadTCM m) => WhichWarnings -> m [TCWarning] Source #
Collect all warnings that have accumulated in the state.
dropTopLevelModule :: QName -> TCM 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 #
explainWhyInScope :: forall m. MonadPretty m => WhyInScopeData -> m Doc Source #
class Verbalize a where Source #
Instances
Verbalize Cohesion Source # | |
Defined in Agda.TypeChecking.Errors | |
Verbalize Hiding Source # | |
Defined in Agda.TypeChecking.Errors | |
Verbalize Modality Source # | |
Defined in Agda.TypeChecking.Errors | |
Verbalize Quantity Source # | |
Defined in Agda.TypeChecking.Errors | |
Verbalize Relevance Source # | |
Defined in Agda.TypeChecking.Errors |
Orphan instances
PrettyTCM NegativeUnification Source # | |
prettyTCM :: MonadPretty m => NegativeUnification -> m Doc Source # | |
PrettyTCM SplitError Source # | |
prettyTCM :: MonadPretty m => SplitError -> m Doc Source # | |
PrettyTCM TCErr Source # | |
PrettyTCM TypeError Source # | |
PrettyTCM UnificationFailure Source # | |
prettyTCM :: MonadPretty m => UnificationFailure -> m Doc Source # |