Skip to content

REPL does not work properly until load or reload file second time #765

Closed
@geraldus

Description

@geraldus

I had very limited interaction with REPL in past, but getting to use it more now. Usually loading file with haskell-process-load-or-reload works correctly only first time, if I'll modify source and reload it REPL does not work. For example, loaded modules are unavailable (<interactive>:1:1: Not in scope: …), or main action could not be run:

λ> main
Too late for parseStaticFlags: call it before runGhc or runGhcT
*** Exception: ExitFailure 1

To resolve this I have to simply reload file once again without any modifications, after that everything work. I don't know is it some recent breakage or old bug. I've faced this issue with single haskell files and with cabal projects too.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions