haskell / haskell/haskell-mode

Conditional 'cabal configure' when 'haskell-process-restart invoked for ghcjs apps

Open
#1,425 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
1.4k
Forks
354
Avg merge
5d 10h
Merged PRs (30d)
2

Description

If possible, it would be nice to specify `cabal configure --ghcjs`(or other arbitrary configure options) when the haskell process is restarted. I'm sharing a single package amongst two compilers. When the cabal file changes (modules added/removed, dependencies added/removed), the haskell interactive process restarts and calls `cabal configure`, in my case the last known options are used (either `--ghcjs` or nothing), this causes one of the projects to break (requiring me to leave emacs and invoke the shell command `cabal configure --ghcjs` manually, before restarting the process).

Would it be possible to pass custom arguments into `cabal configure` on `haskell-process-restart` ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.