I'm now able to look up value identifiers, type constructors (including classes), and regular data constructors, but not dictionary constructors. Here's my failing effort to look up a dictionary constructor (in CoreM):
hasRepThing <-
maybe (panic "HasRep lookup failure") lookupThing =<<
(liftIO $
lookupRdrNameInModuleForPlugins hsc_env (mkModuleName "Circat.Rep")
(Unqual (mkDataOcc "C:HasRep")))
pprTrace "mkReifyEnv HasRep thing:" (ppr hasRepThing) (return ())
Result:
ghc-stage2: panic! (the 'impossible' happened)
(GHC version 8.1.20160307 for x86_64-apple-darwin):
HasRep lookup failure
Same failure when I use the name string "HasRep" in place of "C:HasRep".
Any idea what I'm doing wrong here?
-- Conal