Giter Club home page Giter Club logo

Comments (6)

dag avatar dag commented on July 1, 2024

Maybe also some or all of the types in the .Types module, especially Parser itself, but maybe not the (term-level) constructors. Another option is to export the .Internal types from .Types.

Currently I need three different imports for optparse, one of which is internal.

from optparse-applicative.

startling avatar startling commented on July 1, 2024

I did the exact same thing and had the exact same issue.

from optparse-applicative.

pcapriotti avatar pcapriotti commented on July 1, 2024

I added some exports in Builder. Does that fix the issue?

from optparse-applicative.

dag avatar dag commented on July 1, 2024

It does fix the issue of having to import .Internal in my case, although I'd still like for at least Parser to be exported from Options.Applicative in some way.

In my particular case I also need import Options.Applicative.Types (Completer(..)) because I'm getting completions from a database and doing the prefix check myself in the query as an optimization (listIOCompleter would be slower), but perhaps that's a special case, or perhaps the right solution for that would be to add a completer = Completer to Options.Applicative.Builder.Completer or something?

from optparse-applicative.

pcapriotti avatar pcapriotti commented on July 1, 2024

although I'd still like for at least Parser to be exported from Options.Applicative in some way

But it is, isn't it? It comes from Common.

In my particular case I also need import Options.Applicative.Types (Completer(..)) because I'm getting completions from a database and doing the prefix check myself in the query as an optimization

Yeah, that's reasonable. I've now added mkCompleter = Completer and exports.

from optparse-applicative.

dag avatar dag commented on July 1, 2024

Cool, thanks!

from optparse-applicative.

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.