Comments (6)
According to [1], "only the repl domain is supported which denotes the kind of completion that would be provided interactively by GHCi at the input prompt." Presumably support for other domains is implemented in the "intero" fork of GHCi and can be backported. If you're interested in this feature please register your interest with the GHC team.
[1] https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ghci.html
from dante.
In GHCi the completion is for the prompt only, AFAIU. Correct me if I'm wrong.
from dante.
I'm not sure. But I think haskell-interactive-mode
is 100% based on GHCi, and it can provide completion.
from dante.
GHCI has a command to query completions.
https://github.com/ghc/ghc/blob/master/ghc/GHCi/UI.hs#L281
from dante.
Can't we use the "repl domain" for this? I'm not really sure what a domain is, but I get useful identifier completions:
ghci> :complete repl "map"
4 4 ""
"map"
"mapM"
"mapM_"
"mappend"
It seems like this is what Intero uses.
from dante.
Let's use the repl domain for now until GHCi can do something more clever.
from dante.
Related Issues (20)
- Crash upon opening .hs file HOT 7
- Donations/sponsorships? HOT 2
- Jump to definition and Info unreliable. Configuration of test targets hard to get right HOT 13
- Error while checking syntax automatically: (error "Buffer *dante:<name>::<path>/* has no process") HOT 1
- Tooltip errors don't display hole fits every time HOT 1
- hlint-enabling snippet adds haskell-hlint many times
- Dante forgets directory variables (dante-methods) from time to time HOT 1
- Problem with global-flycheck-mode enabled HOT 1
- dir-local dante-target HOT 6
- Bad formating if no newline present
- Unable to get dante working with SimulaVR HOT 2
- How is this related to the haskell-language-server? HOT 2
- Setting up Dante Targets for enabling jump to definition and repl HOT 1
- Using Dante with stack script HOT 9
- Support for Emacs 27 dropped in 6d212f3 HOT 5
- Warnings and errors disappear after asking flycheck to reload unchanged buffer. HOT 1
- Complains about no loading method applies, even if all variables are set.
- dante doesn't install with Aquamacs
- Corfu integration
- "These modules are needed for compilation but not listed in your .cabal" error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dante.