haskell-suite / haskell-names

Haskell suite library for name resolution
52 stars 17 forks source link

Allow to pass -XNoImplicitPrelude to 'importTable' explicitly #95

Open chshersh opened 7 years ago

chshersh commented 7 years ago

Here I see that some detection on implicit Prelude take place. But -XNoImplicitPrelude may be specified in default-extensions in .cabal file and passed inside list of extensions to parseFileWithExts for example. This function doesn't update Module value and doesn't add these language pragmas thus it's not so convenient to use importTable on modules from projects with alternative prelude. I propose to add extra parameter to this function.