Skip to content

Default to load all modules as interpreted in haskell-mode #1882

Description

@morphismz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions