Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

ghc-mod 5.5 #176

Merged
merged 9 commits into from
Jan 18, 2016
Merged

ghc-mod 5.5 #176

merged 9 commits into from
Jan 18, 2016

Conversation

cocreature
Copy link
Collaborator

Now the cwd is only changed at startup, which means that every cabal
project requires it’s own hie instance.

This is not finished, but I thought that it might be easier to fix the remaining issues if we have something to look at.

In particular HaRe needs to expose functions that work in GhcModT instead of trying to setup it’s own ghc-mod session since that no longer works with ghc-mod 5.5.

Also the ide bindings need to be updated. They simply need to pass in the directory with the cabal file or any subdirectory of that (ghc-mod figures the root out in that case). They can either do that by starting hie with the correct cwd or by using -r projectdir. On the emacs front we can probably simply abuse haskell-mode’s session management to have one hie instance per project.

@cocreature
Copy link
Collaborator Author

Updated, currently requires a yet to be merged HaRe pr.
Also we need to disable ghc-mod’s find command for now. It requires launching a separate executable which can not be found when the executable is not ghc-mod itself. This will be fixed in an upcoming release so there’s no good reason to put in a temporary hack.

Now the cwd is only changed at startup, which means that every cabal
project requires it’s own hie instance.
Currently ghc-mod calls trys to launch itself again for this. This will
be fixed in an upcoming release and then we can switch it on again.
@cocreature cocreature changed the title [WIP] Ghc mod 5.5 ghc-mod 5.5 Jan 18, 2016
@cocreature
Copy link
Collaborator Author

Travis is finally happy (after running out of memory multiple times, because for some reason the cache got cleaned), so as soon as somebody has time to look over it we can merge this.

alanz added a commit that referenced this pull request Jan 18, 2016
@alanz alanz merged commit 6078c36 into haskell:master Jan 18, 2016
@alanz alanz added this to the prehistory milestone Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants