The Haskell Common Architecture for Building Applications and Libraries: a framework defining a common interface for authors to more easily build their Haskell applications in a portable way. The Haskell Cabal is part of a larger infrastructure for distributing, organizing, and cataloging Haskell libraries and tools.


Keywords
distribution, library, Propose Tags, Skip to Readme, , Index, Quick Jump, Distribution.Backpack.ComponentsGraph, Distribution.Backpack.Configure, Distribution.Backpack.ConfiguredComponent, Distribution.Backpack.DescribeUnitId, Distribution.Backpack.FullUnitId, Distribution.Backpack.LinkedComponent, Distribution.Backpack.ModSubst, Distribution.Backpack.ModuleShape, Distribution.Backpack.PreModuleShape, Distribution.Compat.CreatePipe, Distribution.Compat.Directory, Distribution.Compat.FilePath, Distribution.Compat.Prelude.Internal, Distribution.Compat.Process, Distribution.Compat.ResponseFile, Distribution.Compat.Stack, Distribution.Compat.Time, Distribution.Make, Distribution.PackageDescription.Check, Distribution.ReadE, Distribution.Simple, Distribution.Simple.Bench, Distribution.Simple.Build, Distribution.Simple.Build.Macros, Distribution.Simple.Build.PackageInfoModule, Distribution.Simple.Build.PathsModule, Distribution.Simple.BuildPaths, Distribution.Simple.BuildTarget, Distribution.Simple.BuildToolDepends, Distribution.Simple.CCompiler, Distribution.Simple.Command, Distribution.Simple.Compiler, Distribution.Simple.Configure, Distribution.Simple.Flag, Distribution.Simple.GHC, Distribution.Simple.GHCJS, Distribution.Simple.Glob, Distribution.Simple.Haddock, Distribution.Simple.HaskellSuite, Distribution.Simple.Hpc, Distribution.Simple.Install, Distribution.Simple.InstallDirs, Distribution.Simple.InstallDirs.Internal, Distribution.Simple.LocalBuildInfo, Distribution.Simple.PackageDescription, Distribution.Simple.PackageIndex, Distribution.Simple.PreProcess, Distribution.Simple.PreProcess.Unlit, Distribution.Simple.Program, Distribution.Simple.Program.Ar, Distribution.Simple.Program.Builtin, Distribution.Simple.Program.Db, Distribution.Simple.Program.Find, Distribution.Simple.Program.GHC, Distribution.Simple.Program.HcPkg, Distribution.Simple.Program.Hpc, Distribution.Simple.Program.Internal, Distribution.Simple.Program.Ld, Distribution.Simple.Program.ResponseFile, Distribution.Simple.Program.Run, Distribution.Simple.Program.Script, Distribution.Simple.Program.Strip, Distribution.Simple.Program.Types, Distribution.Simple.Register, Distribution.Simple.Setup, Distribution.Simple.ShowBuildInfo, Distribution.Simple.SrcDist, Distribution.Simple.Test, Distribution.Simple.Test.ExeV10, Distribution.Simple.Test.LibV09, Distribution.Simple.Test.Log, Distribution.Simple.UHC, Distribution.Simple.UserHooks, Distribution.Simple.Utils, Distribution.TestSuite, Distribution.Types.AnnotatedId, Distribution.Types.ComponentInclude, Distribution.Types.ComponentLocalBuildInfo, Distribution.Types.DumpBuildInfo, Distribution.Types.GivenComponent, Distribution.Types.LocalBuildInfo, Distribution.Types.PackageName.Magic, Distribution.Types.TargetInfo, Distribution.Utils.IOData, Distribution.Utils.Json, Distribution.Utils.LogProgress, Distribution.Utils.MapAccum, Distribution.Utils.NubList, Distribution.Utils.Progress, Distribution.Verbosity, Distribution.Verbosity.Internal, Cabal-3.10.3.0.tar.gz, browse, Package description, Package maintainers, AndresLoeh, BenGamari, DuncanCoutts, HerbertValerioRiedel, MikhailGlushenkov, MikolajKonarski, phadej, Bodigrim, topos, hecate, edit package information , 1.23.1.0, 1.24.0.0, 1.24.2.0, 2.0.0.2, 2.0.1.1, 2.2.0.0, 2.4.0.0, 2.4.1.0, 3.0.1.0, 3.0.2.0, 3.2.0.0, 3.2.1.0, 3.4.0.0, 3.8.0.20220526, 3.10.2.1, Cabal web site, cabal-install, user guide, API documentation, development wiki, bug tracker, Hackage, original Cabal specification, cabal, haskell
License
BSD-3-Clause
Install
cabal install Cabal-3.0.2.0

Documentation

Cabal

Hackage version Stackage version Documentation Status IRC chat Matrix chat GitLab pipeline status

This Cabal Git repository contains the following main packages:

The canonical upstream repository is located at https://github.com/haskell/cabal.

Ways to get the cabal-install binary

  1. GHCup (preferred): get GHCup using the directions on its website and run:

    ghcup install --set cabal latest
    
  2. Download from official website: the cabal-install binary download for your platform should contain the cabal executable.

Preview Releases

Getting unreleased versions of cabal-install: gives you a chance to try out yet-unreleased features. Currently, we only provide binaries for x86_64 platforms.

  1. GitHub preview release built from the tip of the master branch: download from GitHub or use this GHCup command to install:

    ghcup install cabal -u https://github.com/haskell/cabal/releases/download/cabal-head/cabal-head-Linux-x86_64.tar.gz head
    

    Replace "Linux" with "Windows" or "macOS" as appropriate.

    The default Linux build is dynamically linked against zlib, gmp and glibc. You will need to have appropriate versions of these libraries installed to use it. Alternatively a statically linked "Linux-static" binary is also provided.

    You might need to add the following to your cabal.project file if your build fails because of an out-of-date Cabal library:

    allow-newer:
      *:Cabal,
      *:Cabal-syntax
    
    source-repository-package
        type: git
        location: https://github.com/haskell/cabal.git
        subdir: Cabal Cabal-syntax
    
  2. Even more cutting-edge binaries built from pull requests are always available from the Validate worklow page on GitHub, at the very bottom of the page, or from the build-alpine workflow for statically linked Linux builds.

Ways to build cabal-install for everyday use

  1. With cabal-install: if you have a pre-existing version of cabal-install, run:

    cabal install cabal-install
    

    to get the latest version of cabal-install. (You may want to cabal update first.)

  2. From Git: again with a pre-existing version of cabal-install, you can install the latest version from the Git repository. Clone the Git repository, move to its root, and run:

    cabal install --project-file=cabal.project.release cabal-install
    
  3. Bootstrapping: if you don't have a pre-existing version of cabal-install, look into the bootstrap directory.

Learn how to use cabal and get support

cabal comes with a thorough User Manual. If you are new to cabal and want to quickly learn the basics, check Getting Started With Haskell and Cabal.

Got questions? Ask in Haskell Matrix (online chat) or Haskell Discourse.

Build for hacking and contributing to cabal

Refer to CONTRIBUTING.md.