2

I'm trying to use a library that's on hackage, but not on stackage.

Currently, the code doesn't seem to be hosted on git anywhere (although I could "fork" it).

Are there any better ways than to just download the library locally and tell stack.yaml where to find it?

The library is parse-dimacs by the way.

sjakobi
  • 3,546
  • 1
  • 25
  • 43
Alex Coleman
  • 607
  • 1
  • 4
  • 11

1 Answers1

3

stack allows you to specify dependencies that are not included in the (Stackage) snapshot as extra-deps in your stack.yaml.

To use parse-dimacs in your project, you'd add this stanza to your stack.yaml:

extra-deps:
- parse-dimacs-1.3
sjakobi
  • 3,546
  • 1
  • 25
  • 43