Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] Interactive mode improvements #1176

Closed
geraldus opened this issue Feb 22, 2016 · 5 comments
Closed

[Discussion] Interactive mode improvements #1176

geraldus opened this issue Feb 22, 2016 · 5 comments

Comments

@geraldus
Copy link
Contributor

I want to discuss few things about interactive haskell mode.

First, would it make sense to load opened file in REPL immediately when opening very first file in project, that is, if there is no session for visited file yet invoke haskell-process-load-file. Currently, doc-mode shows only keyword hints when no process session is available; also REPL completions is not available until there is no session.

@gracjan gracjan changed the title Interactive mode improvements [Discussion] Interactive mode improvements Feb 22, 2016
@gracjan
Copy link
Contributor

gracjan commented Feb 22, 2016

I find myself editing Haskell files as text. Loading them would require a lot of context and setup, so I skip that.

I find it useful to edit files that aren't loaded. Maybe when HIE is ready I'll change my mind.

@geraldus
Copy link
Contributor Author

Hm… I'll try to play with auto-loading files in my local setup when I'll find a time for this; and if I'll have something reasonable I will post here the results.

@gracjan
Copy link
Contributor

gracjan commented Feb 23, 2016

In #1180 you have another guy that does not want to start sessions and load files immediately.

@geraldus
Copy link
Contributor Author

Well, I start session basically to have nice completions, this speeds up my workflow significantly, I rarely used REPL to play with code in past. This is because of two things: I wasn't used to REPL interactions in general, and when I got used to, there were some notable difference in performance when Emacs REPL outputs a lot of stuff comparing to REPL running in terminal. But my recent tests show that Emacs' REPL now is quite fast (this may relate to Emacs 25 but I'm not certain), so recently I use REPL much frequently.

Now I also got used to see Eldoc messages and find them quite handy, but this requires active session present. I dream about Eldoc will show signatures for all things under cursor and for active region using :type-at, but this requires collect feature in GHCi (and some hacks for stack).

To have up to date information I need to run haskell-process-load every time, this is quite simple but requires a habit to use C-c C-l (or C-c C-c) instead of C-x C-s which I don't have yet :D Maybe having some customizations for auto load / reload files would help me and other people too.

Sorry, I'm too verbose as usual.

@geraldus
Copy link
Contributor Author

I'll close this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants