RnUnbound

ghc-8.4.1: The GHC API

Safe Haskell | None
Language | Haskell2010

RnUnbound

Synopsis

- mkUnboundName :: OccName -> Name
- mkUnboundNameRdr :: RdrName -> Name
- isUnboundName :: Name -> Bool
- reportUnboundName :: RdrName -> RnM Name
- unknownNameSuggestions :: DynFlags -> GlobalRdrEnv -> LocalRdrEnv -> ImportAvails -> RdrName -> SDoc
- data WhereLooking
  - = WL_Any
  - | WL_Global
  - | WL_LocalTop
  - | WL_LocalOnly
- unboundName :: WhereLooking -> RdrName -> RnM Name
- unboundNameX :: WhereLooking -> RdrName -> SDoc -> RnM Name
- perhapsForallMsg :: SDoc

# Documentation

mkUnboundName :: OccName -> Name Source #

mkUnboundNameRdr :: RdrName -> Name Source #

isUnboundName :: Name -> Bool Source #

reportUnboundName :: RdrName -> RnM Name Source #

unknownNameSuggestions :: DynFlags -> GlobalRdrEnv -> LocalRdrEnv -> ImportAvails -> RdrName -> SDoc Source #

Called from the typechecker (TcErrors) when we find an unbound variable

data WhereLooking Source #

Constructors

WL_Any |
WL_Global |
WL_LocalTop |
WL_LocalOnly |

unboundName :: WhereLooking -> RdrName -> RnM Name Source #

unboundNameX :: WhereLooking -> RdrName -> SDoc -> RnM Name Source #

perhapsForallMsg :: SDoc Source #