commercialhaskell / commercialhaskell/stack
Can't `stack ghci` in a package with a `Prelude` module
Open
component: ghci
resolution: upstream issue
type: bug
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
Hi, I have a package that exports a module named `Prelude`, and `stack ghci` doesn't seem to work out of the box. Is there a flag/option I need to set somewhere?
Here is an example repo: https://github.com/mitchellwrosen/stack-ghci-prelude-bug
To reproduce, clone and run `stack ghci`. It prints:
```
Configuring GHCi with the following packages: foo
GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help
:1:1: error:
attempting to use module ‘main:Prelude’ (/home/mitchell/junk/Prelude.hs) which is not loaded
```
Contributor guide
Assessment
This issue has not been assessed yet.