Coder Social home page Coder Social logo

bodigrim / cabal-add Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 2.0 41 KB

Extend Cabal build-depends from the command line

Home Page: https://hackage.haskell.org/package/cabal-add

License: BSD 3-Clause "New" or "Revised" License

Haskell 100.00%
cabal cabal-install dependencies dependency

cabal-add's People

Contributors

bodigrim avatar hasufell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ramirez7 hasufell

cabal-add's Issues

Support cabal.project, remove --cabal-file key

In line with the usual Cabal CLI, remove --cabal-file, add --project-file:

  • If --project-file has been specified, parse it.
    • If --project file appears to be a Cabal file, go for it without complaints.
  • If --project-file is not specified, look for cabal.project in the current folder.
  • If cabal.project is not found, look for *.cabal in the current folder.

readProject provides us pretty much everything we need.

Hackage Release

Since haskell/haskell-language-server#4360 adds a CodeAction which utilises cabal-add to add a dependency to a .cabal file, it would be much easier for HLS (especially when HLS does a Hackage release) if cabal-add was released to Hackage as well.

While we are not releasing right now, this issue aims to track a potential Hackage release.

cc @VenInf

No way of specifying path to the cabal file.

The cabal-add tool looks up the cabal file by searching the current working directory.
I want to add the cabal-add tool to the hls and it would be very beneficial to have a way of specifying the path to the cabal file.
To my understanding, the --project-file is not related to this request (and also I failed to make this option work in this scenario).

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.