RnUnbound

ghc-8.6.3: 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 #

mkUnboundNameRdr :: RdrName -> Name #

isUnboundName :: Name -> Bool #

reportUnboundName :: RdrName -> RnM Name #

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

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

data WhereLooking #

Constructors

WL_Any |
WL_Global |
WL_LocalTop |
WL_LocalOnly |

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

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

perhapsForallMsg :: SDoc #