Safe Haskell | None |
---|
- data Warning = Warning {
- warnSrcLoc :: !SrcLoc
- warnType :: WarnType
- warnMessage :: String
- class Monad m => MonadWarn m where
- addWarning :: Warning -> m ()
- data WarnType
- = AmbiguousExport Module [Name]
- | AmbiguousName Name [Name]
- | DuplicateInstances
- | InvalidDecl
- | MissingDep String
- | MissingModule Module
- | MultiplyDefined Name [SrcLoc]
- | InvalidFFIType
- | OccursCheck
- | PrimitiveBadType
- | PrimitiveUnknown Atom
- | TypeSynonymPartialAp
- | TypeSynonymRecursive
- | UndefinedName Name
- | UnificationError
- | UnknownDeriving [Class]
- | UnknownOption
- | UnknownPragma PackedString
- | UnsupportedFeature
- processErrors :: [Warning] -> IO ()
- warn :: MonadWarn m => SrcLoc -> WarnType -> String -> m ()
- err :: MonadWarn m => WarnType -> String -> m ()
- addWarn :: (MonadWarn m, MonadSrcLoc m) => WarnType -> String -> m ()
- processIOErrors :: IO ()
- printIOErrors :: IO Bool
Documentation
Warning | |
|
processErrors :: [Warning] -> IO ()Source
processIOErrors :: IO ()Source
printIOErrors :: IO BoolSource
just show IO errors and return whether it would have died