It defines a common interface for package authors and distributors to easily build their applications in a portable way. Cabal is part of a larger infrastructure for distributing, organizing, and cataloging Haskell libraries and programs. The term cabal can refer to either: cabal-the-spec.
To install the cabal executable you can use ghcup if you're using Linux , the Haskell Platform , install the cabal-install package from your distributions package manager if using Linux or Mac , or download the source or prebuilt binary from the Download page.
If you already have the cabal executable you can upgrade it by running: cabal install cabal-install. If the above command failed for any reason see the Update Troubleshooting section below. Namespaces Page Discussion. Views Read View source View history. Navigation Haskell Wiki community Recent changes Random page.
This page was last modified on 10 March , at Recent content is available under simple permissive license. Privacy policy About HaskellWiki Disclaimers. Sometimes the GHC packages are a bit outdated as well. In either case, consider using GHCup instead. Instead you will have to install it manually, see the release page , unless you use VSCode, which bootstraps everything automatically.
This is optional. Show linux distros. Steps to setup ghc and cabal are given in the ghc ppa. Steps to setup stack are on the stack website. Steps to setup ghc and cabal are given in the ghc debian apt repository. There are also unofficial Fedora Copr repos with more recent cabal-install.
To install these older versions of ghc and cabal-install from the official EPEL repo, just run the install command:. Note: installing the Haskell toolchain via the Arch Linux package manager is not recommended, since it enforces dynamic linking, which can cause various issues.
0コメント