Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- prettyError :: MonadTCM tcm => TCErr -> tcm String
- prettyWarning :: MonadPretty m => Warning -> m Doc
- tcErrString :: TCErr -> String
- prettyTCWarnings' :: [TCWarning] -> TCM [String]
- prettyTCWarnings :: [TCWarning] -> TCM String
- tcWarningsToError :: [TCWarning] -> TCM a
- applyFlagsToTCWarnings' :: MainInterface -> [TCWarning] -> TCM [TCWarning]
- applyFlagsToTCWarnings :: [TCWarning] -> TCM [TCWarning]
- dropTopLevelModule :: QName -> TCM QName
- topLevelModuleDropper :: (MonadTCEnv m, ReadTCState m) => m (QName -> QName)
- stringTCErr :: String -> TCErr
Documentation
prettyWarning :: MonadPretty m => Warning -> m Doc Source #
tcErrString :: TCErr -> String Source #
tcWarningsToError :: [TCWarning] -> TCM a Source #
Turns all warnings into errors.
applyFlagsToTCWarnings' :: MainInterface -> [TCWarning] -> TCM [TCWarning] Source #
Depending which flags are set, one may happily ignore some warnings.
dropTopLevelModule :: QName -> TCM QName Source #
Drops the filename component of the qualified name.
topLevelModuleDropper :: (MonadTCEnv m, ReadTCState m) => m (QName -> QName) Source #
Produces a function which drops the filename component of the qualified name.
stringTCErr :: String -> TCErr Source #
Orphan instances
PrettyTCM TCErr Source # | |
PrettyTCM TypeError Source # | |
PrettyTCM UnificationFailure Source # | |
prettyTCM :: MonadPretty m => UnificationFailure -> m Doc Source # | |
PrettyTCM NegativeUnification Source # | |
prettyTCM :: MonadPretty m => NegativeUnification -> m Doc Source # | |
PrettyTCM SplitError Source # | |
prettyTCM :: MonadPretty m => SplitError -> m Doc Source # |