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

Module for interacting with ghci #13

Closed
mrcjkb opened this issue Oct 19, 2022 · 2 comments · Fixed by #37
Closed

Module for interacting with ghci #13

mrcjkb opened this issue Oct 19, 2022 · 2 comments · Fixed by #37
Labels
enhancement New feature or request

Comments

@mrcjkb
Copy link
Owner

mrcjkb commented Oct 19, 2022

  • Detect file type
  • Detect build tool (cabal | stack | fallback to ghci)
  • Send files, lines, selection, text objects, ... to repl

Possible alternative: iron.nvim
Does not seem flexible enough as a standalone, but it may be feasible to interface with it by setting repl_definition.haskell.command (?)

@mrcjkb mrcjkb added the enhancement New feature or request label Oct 19, 2022
@mrcjkb mrcjkb changed the title Commands for opening current file in repl Module for interacting with ghci Oct 19, 2022
@mrcjkb
Copy link
Owner Author

mrcjkb commented Nov 4, 2022

TODO: Handle ambiguous targets:

e.g.,

Error: cabal: Abmiguous target: 'lib/test/Spec.hs`.
It could be:
subpackage1-spec:test/Spec (file)
subpackage2-test:test/Spec (file)

@mrcjkb
Copy link
Owner Author

mrcjkb commented Nov 5, 2022

Strategies:

@mrcjkb mrcjkb linked a pull request Nov 8, 2022 that will close this issue
@mrcjkb mrcjkb closed this as completed in #37 Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant