Skip to content

stack ghci cannot find imported module in non-project local directory  #2878

@bitemyapp

Description

@bitemyapp

Was looking into this: https://github.com/pushcx/stack-bug

The following worked, which surprised a user:

Prelude> :l Foo.hs Bar.hs 
[1 of 2] Compiling Bar              ( Bar.hs, interpreted )
[2 of 2] Compiling Foo              ( Foo.hs, interpreted )
Ok, modules loaded: Foo, Bar.

Just loading Foo.hs by itself does not with stack ghci whereas ghci does. Is there a good reason for this difference in behavior? If there isn't a strong reason I'd rather the difference be harmonized.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions