1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 10:15:25 +02:00
tldr/pages/common/cabal.md
Managor 4b1e0196d1
common/*: reduce usage of "command-line" (part 3) (#16951)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
2025-06-28 13:12:44 +00:00

636 B

cabal

Interface to the Haskell package infrastructure (Cabal). Manage Haskell projects and Cabal packages from the Hackage package repository. More information: https://cabal.readthedocs.io/en/latest/getting-started.html.

  • Search and list packages from Hackage:

cabal list {{search_string}}

  • Show information about a package:

cabal info {{package}}

  • Download and install a package:

cabal install {{package}}

  • Create a new Haskell project in the current directory:

cabal init

  • Build the project in the current directory:

cabal build

  • Run tests of the project in the current directory:

cabal test