Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Development.IDE.Types.HscEnvEq
Synopsis
- data HscEnvEq
- hscEnv :: HscEnvEq -> HscEnv
- newHscEnvEq :: HscEnv -> IO HscEnvEq
- updateHscEnvEq :: HscEnvEq -> HscEnv -> IO HscEnvEq
- envPackageExports :: HscEnvEq -> IO ExportsMap
- envVisibleModuleNames :: HscEnvEq -> IO (Maybe [ModuleName])
Documentation
An HscEnv
with equality. Two values are considered equal
if they are created with the same call to newHscEnvEq
or
updateHscEnvEq
.
envPackageExports :: HscEnvEq -> IO ExportsMap Source #
envVisibleModuleNames :: HscEnvEq -> IO (Maybe [ModuleName]) Source #
listVisibleModuleNames
is a pure function,
but it could panic due to a ghc bug: https://github.com/haskell/haskell-language-server/issues/1365
So it's wrapped in IO here for error handling
If Nothing, listVisibleModuleNames
panic