haskell / haskell/cabal

cabal repl other-package doesn't open repl

Open
#7,963 7 comments 0 reactions 0 assignees View on GitHub
attention: pr-welcome cabal-install: cmd/repl re: error-message
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
When I call `cabal repl package-name` for some dependency in the current project, `cabal` accepts the argument, builds it, and then just exits.

**To Reproduce**
Steps to reproduce the behavior:

```
$ cd Cabal
$ cabal v2-repl filepath
Resolving dependencies...
Up to date
$ echo $?
0
```

**Expected behavior**
I'd expect either an error telling me what I'm trying to do doesn't make sense, or a repl prompt.

**System information**
- Operating system: macos
- `cabal` 3.6.2.0 & recent HEAD, `ghc` 8.10.7

**Additional context**
What I was actually trying to do is bring an indirect dependency into scope. A repl within http-conduit which depends on http-client which pulls in network-uri, and I can't interact with the URIs I get out of some of the things I have in scope. Not sure `cabal repl network-uri` should have helped with that, or what would be the best way to achieve that.

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.