Git Product home page Git Product logo

cabal-info's People

Contributors

barrucadu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ch1bo jtdawso

cabal-info's Issues

Disambiguating names

If you have an executable called "foo" and a testsuite called "foo", then "foo:name" currently refers to the executable and there is no way to get the name of the testsuite.

Best way to solve this is probably to add another optional prefix, so you can say (eg) "executable:foo:name" and "testsuite:foo:name".

Listing executables/etc

Would be nice if there was something like cabal-info executables to list the names of the executables.

Querying flags

Would be nice to get the description and default value of a flag. This doesn't nicely fit into use of a PackageDescription though, need to get those from the GenericPackageDescription.

Do something when no field is given?

If flag processing is added (#2), then it might be nice to just dump a pretty-printed cabal file with the flags applied, so you can easily see the effects of different flags.

Use finalizePD instead?

I was skimming the cabal source code, and it mentions that finalizePackageDescription is deprecated and now assumes certain artifacts are always not buildable. I am not sure if that has a direct effect on the values you are displaying.

Also, package level build-depends is overshadowing library/exe level build-depends, I believe.

Allow specifying the platform.

Currently the build platform is used. This is a reasonable default (although the host platform would be even better), but it would be nice to have it as a parameter.

Trailing newlines

These come up if a field isn't there, but doesn't get a Maybe value (eg, the description or copyright fields). Could special-case [""], but just stripping trailing empty lines might be nicer.

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.