Git dependencies - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Asad Saeeduddin

can i depend on a haskell library directly via a tarball/git repository? without any hackage/stackage involvement

Sridhar Ratnakumar

I do that all that time. With nix :-D

Sridhar Ratnakumar

I believe you can do this in stack.yaml too

Asad Saeeduddin

neat. do you know if that works with haskell.nix as well?

Sridhar Ratnakumar

I'm not too familiar with haskell.nix; but it being such a fundamental feature (even stack supports it) it has to be possible.

Asad Saeeduddin

ok, having read a little bit more about this, the Nix approach is useful, and I might try that out at some point, but right now what I want is a Nix-independent way to do this using only Cabal. Does Cabal directly support this feature?

Asad Saeeduddin

what I want is for someone to be able to download my Git repository which depends on a package stored in yet another Git repository, and be able to build it from source with Cabal without even having Nix installed on their system.

Avi Dessauer

Take a look at this file

https://www.github.com/haskell/haskell-ide-engine/tree/master/cabal.project

See the stack file for the stack equivalent.

The engine for haskell ide-integration. Not an IDE - haskell/haskell-ide-engine