Is there any method for finding valid versions of the range of the library being used
I am a beginner Haskell programmer. I have written useful code in the past six months. And I want to release a library from it. The code will use the system installation like any Haskell library. The library released with cabal has a metadata file where there is a logical predicate from the libraries and their versions.
The developer usually uses one set library. It tiresomely takes care of the collection of library sets. How do I know if my library compiled successfully or not for some subset libraries?
a source to share
I would say that the best way to check the version range given in the file .cabal
is to try installing the package.
Cabal will ignore any packages you have installed on your computer that are not specifically mentioned in your package description file.
For example, if you have installed somepackage-2.1
, but your file .cabal
specifies somepackage >= 1.0 && < 2.0
, cabal-install will try to download a version of the package from that range. This means that you are not accidentally using a package that is on your computer but is not listed in the package description.
Installing the package is simple, you can simply run cabal install
from the directory containing the file .cabal
.
a source to share