Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenient way of loading specific module in repl #10216

Open
jforberg opened this issue Jul 19, 2024 · 0 comments
Open

Convenient way of loading specific module in repl #10216

jforberg opened this issue Jul 19, 2024 · 0 comments
Labels
cabal-install: cmd/repl re: options Concerning command-line options re: user experience User experience (UX) issue type: enhancement

Comments

@jforberg
Copy link

By default "cabal repl" loads only the public exports of a module. Often during development we need to access also the private definitions of a module.

This is possible to do in a cabal project too, but is inconvenient:

cabal repl --repl-no-load --repl-options=MyModule.hs

It also triggers a -Wmissing-home-modules warning.

It would be nice if there was an official syntax to perform this operation, supported by cabal repl out of the box.

@jforberg jforberg changed the title Convenient way of loading specific module Convenient way of loading specific module in repl Jul 19, 2024
@ulysses4ever ulysses4ever added cabal-install: cmd/repl re: options Concerning command-line options re: user experience User experience (UX) issue labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: cmd/repl re: options Concerning command-line options re: user experience User experience (UX) issue type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants