Where can I find correct package name and version for Haskell?

前端 未结 3 1655
既然无缘
既然无缘 2020-12-18 07:41

Say, I need System.Eval.Haskell. Or whatever else. How do I know which package I should specify in my package.yaml? When I go to the https://hackag

3条回答
  •  猫巷女王i
    2020-12-18 08:02

    When you view module documentation on hackage, the package name is in the upper left corner:

    In this case, it's indeed plugins, version 1.5.7.

    When you declare dependencies in your .cabal file, Stack will attempt to find a version that fits with the Long-Term Support (LTS) collection that you're targeting.

    Sometimes, you want to use a different version than the one available in the LTS collection (for example if you want a more recent one), in which case you can define the package, and its specific version, in extra-dependencies.

提交回复
热议问题