tarleb
tarleb

Reputation: 22544

Can I use cabal to handle non-Haskell libraries?

There have been attempt in other package managers to build brigdes to other ecosystems. E.g., there is composer-npm-bridge, which allows to pull packages from node registry into a PHP project. Is it possible to build something like this using cabal? More concretely, how would one go about pulling packages from luarocks into a Haskell project?

Upvotes: 1

Views: 68

Answers (1)

Daniel Wagner
Daniel Wagner

Reputation: 152682

It is in principle possible: with build-type: custom, cabal will compile and run your Setup.hs in place of its own build mechanisms, and you can put arbitrary Haskell code in Setup.hs. Alternately, if you can fit your setup process into the usual configure-make-make install dance, then the build-type: configure option may be just the ticket.

See the user's guide for more complete details on these configuration options.

Upvotes: 3

Related Questions