ghc-9.8.1: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.Rename.Unbound

Synopsis

Documentation

unknownNameSuggestions :: LocalRdrEnv -> WhatLooking -> RdrName -> RnM ([ImportError], [GhcHint]) Source #

Called from the typechecker (GHC.Tc.Errors) when we find an unbound variable

fieldSelectorSuggestions :: GlobalRdrEnv -> RdrName -> [GhcHint] Source #

When the name is in scope as field whose selector has been suppressed by NoFieldSelectors, display a helpful message explaining this.

data WhatLooking Source #

Instances

Instances details
Eq WhatLooking Source # 
Instance details

Defined in GHC.Rename.Unbound

data LookingFor Source #

Constructors

LF 

nameSpacesRelated Source #

Arguments

:: DynFlags

to find out whether -XDataKinds is enabled

-> WhatLooking

What kind of name are we looking for

-> NameSpace

Name space of the original name

-> NameSpace

Name space of a name that might have been meant

-> Bool