haskell / haskell/haskell-mode

Default to load all modules as interpreted in haskell-mode

Open
#1,882 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
1.4k
Forks
354
Avg merge
5d 10h
Merged PRs (30d)
2

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.