-
Notifications
You must be signed in to change notification settings - Fork 351
Description
The command haskell-process-load-file (bound to C-c C-l in haskell-mode) essentially runs :load /path/to/current/file in the ghci session associated to the current project. This does not load the module, or its dependencies, as interpreted. Thus, if I'm trying to use haskell-mode for features such as just to definition, displaying typing info, etc., I constantly run into "definition not in scope" errors.
I can define a function that does load the module and its dependencies as interpreted, and rebind it to C-c C-l. But I feel like I missing something, since I assume many people use haskell-mode for the features described above. Is there something built into haskell-mode that lets me load a module and all its dependencies as interpreted? I would prefer to do this on a per module basis, since the code base I'm working on is too large to conveniently load all modules at start up.
What is the recommended way of loading a module in haskell-mode for the purpose of jump to definition?