commercialhaskell / commercialhaskell/stack

Can't `stack ghci` in a package with a `Prelude` module

Open
#3,862 5 comments 5 reactions 0 assignees View on GitHub
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

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.