Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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://hackage.haskell.org/package/plugins-1.5.7/docs/System-Eval-Haskell.html, I see no package name.

P.S. "plugins" did not work for me. Thus, I assume it's something different. I hope so :)


Looks like there is somewhat quite unclear difference between extra-dependencies and "regular" dependencies in the configuration. Mentioning plugins-1.5.7 as extra-dep indeed works. Am I doing some dependency mismanagement here, or that's green way to go?

like image 953
Zazeil Avatar asked Feb 18 '18 17:02

Zazeil


People also ask

How do I find the installed version of a package?

Find a package version in DEB-based systems In Debian, Ubuntu and its derivatives such as Linux Mint, Elementary OS, we can find the installed a package, Say Apache webserver, version using command: $ dpkg -s apache2 | grep -i version

What is find-package and get-packageprovider?

Find-Package finds software packages that are available in package sources. Get-PackageProvider and Get-PackageSource display details about your providers. This command finds all available PowerShell module packages in a registered gallery.

How do I find the package name of an app?

You don’t have to tap on an app to see its package name. The package name for each app is displayed right under its name. It also lets you copy multiple package names at once. The Google Play Store uses an app’s package name in the URL to that app’s Play Store page. You can find it right after id=.

How to find installed version of Vim in Linux?

To view the package version and other details, use apk info command like below. You will see the small description of the given package and it's website where it is hosted. As you see, the installed version of Vim is 8.2. To find out an installed package (Eg.


1 Answers

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

Package name highlighted

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.

like image 143
Mark Seemann Avatar answered Sep 21 '22 00:09

Mark Seemann