How to connect dependencies in Haskell applications

Right now I am writing todo.sh in Haskell to better understand how IO monads work, and I'm going to use cmdArgs for syntax input like argparse do in Python.

My question is, how can I bind the cmdArgs dependency as pip requirements.txt?

Django==1.5.1
South==0.7.6

And is it okay to distribute my package in Hackage?

+5
source share
1 answer

Use the field build-dependsin the file.cabal

build-depends:
    cmdargs == 0.10.3

But specifying one exact version is usually not the best idea, so

build-depends:
    cmdargs >= 0.8 && < 0.11

indicates the range of valid versions.

And is it okay to distribute my package in Hackage?

Not if you know that it will never be useful to everyone.

, , , . Hackage , , , .

+6

All Articles