Giter Club home page Giter Club logo

Comments (6)

jyp avatar jyp commented on June 2, 2024 1

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.

jyp avatar jyp commented on June 2, 2024

In GHCi the completion is for the prompt only, AFAIU. Correct me if I'm wrong.

from dante.

ElvishJerricco avatar ElvishJerricco commented on June 2, 2024

I'm not sure. But I think haskell-interactive-mode is 100% based on GHCi, and it can provide completion.

from dante.

ljli avatar ljli commented on June 2, 2024

GHCI has a command to query completions.
https://github.com/ghc/ghc/blob/master/ghc/GHCi/UI.hs#L281

from dante.

puffnfresh avatar puffnfresh commented on June 2, 2024

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.

jyp avatar jyp commented on June 2, 2024

Let's use the repl domain for now until GHCi can do something more clever.

from dante.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.