commercialhaskell / commercialhaskell/stack

stack repl confused by locally unpacked hackage lib

Open
#4,049 3 comments 0 reactions 0 assignees View on GitHub
component: ghci type: bug type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

Just asking if you know about this, or have a quick idea on fixing. Can provide details/repro later if not.

I have in `stack.yaml` (with various resolvers, for example `11.7`)

```
packages:
- .
- gloss-rendering-1.11.1.1
- gloss-1.11.1.1
```
where the `gloss-*` dirs were unpacked with `stack unpack`.

The project builds and runs fine. But when attempting `stack repl`, it seems to confuse the source-based one with the library:

```
* Couldn't match type `gloss-rendering-1.11.1.1:Graphics.Gloss.Internals.Data.Picture.Picture'
with `Picture'
NB: `Picture' is defined at
...path..to...............\gloss-rendering-1.11.1.1\Graphics\Gloss\Internals\Data\Picture.hs:(63,1)-(124,43)
`gloss-rendering-1.11.1.1:Graphics.Gloss.Internals.Data.Picture.Picture'
is defined in `Graphics.Gloss.Internals.Data.Picture'
in package `gloss-rendering-1.11.1.1'
Expected type: Maybe Picture
Actual type: Maybe
gloss-rendering-1.11.1.1:Graphics.Gloss.Internals.Data.Picture.Picture
```

Not sure for the reason. Thank you.

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.