haskell / haskell/cabal

'new-exec ghc -- --interactive' behaves different than 'new-exec ghci'

Open
#5,621 3 comments 1 reaction 0 assignees View on GitHub
attention: pr-welcome cabal-install: cmd/exec cabal-install: v2-build system
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Setup:

```
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.4.4
```

So current ghc in PATH is `8.4.4`.

Project config is set to `ghc-8.4.3`

Invoking `new-exec ghc -- --interactive` in the project dir will start `ghci-8.4.3` with the 8.4.3 environment file.

Invoking `new-exec ghci` will try to start `ghci-8.4.4` with the 8.4.3 environment file, which fails straight.

These two should do the same, imo.

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.