ghcup
ghcup is a command-line tool that is used to manage multiple versions of the Glasgow Haskell Compiler (GHC) and related Haskell tools on your system. It allows you to easily install, switch between, and manage different versions of GHC.
Here are some key features and functionalities of ghcup:
-
Installation: ghcup simplifies the installation process of GHC and related tools on your system. It can automatically download and install the desired GHC version, as well as associated tools like cabal-install and hls (Haskell Language Server).
-
Version management: ghcup provides a convenient way to manage multiple GHC versions on your system. You can install different versions side by side and switch between them easily using the ghcup command.
-
Dependency management: ghcup allows you to manage package dependencies for different GHC versions. It provides features like installing specific cabal-install versions along with GHC, and managing separate package databases for each GHC version.
-
Toolchain support: ghcup provides seamless integration with other Haskell development tools. It is compatible with popular build tools like Cabal and Stack, making it easier to use them together with different GHC versions.
-
Path management: ghcup ensures that the appropriate GHC version and associated tools are in your system's PATH environment variable. This enables you to use the desired GHC version and related tools globally or per project, depending on your preference.
Overall, ghcup simplifies the management of GHC and related tools, making it easier for Haskell developers to work with different GHC versions and manage their development environments efficiently.
List of commands for ghcup:
-
ghcup:tldr:11963 ghcup: List available GHC/cabal versions.$ ghcup listtry on your machineexplain this command
-
ghcup:tldr:1d5a7 ghcup: Update `ghcup` itself.$ ghcup upgradetry on your machineexplain this command
-
ghcup:tldr:1de36 ghcup: Install cabal-install.$ ghcup install cabaltry on your machineexplain this command
-
ghcup:tldr:2e968 ghcup: Set the currently "active" GHC version.$ ghcup set ghc ${version}try on your machineexplain this command
-
ghcup:tldr:33f35 ghcup: Install a specific GHC version.$ ghcup install ghc ${version}try on your machineexplain this command
-
ghcup:tldr:444a0 ghcup: Start the interactive TUI.$ ghcup tuitry on your machineexplain this command
-
ghcup:tldr:56bf4 ghcup: Install the recommended GHC version.$ ghcup install ghctry on your machineexplain this command