![Forrest logo](/images/logo.png)
yesod:tldr:07724
The command "stack build yesod-bin cabal-install --install-ghc" is used to build and install the "yesod-bin" and "cabal-install" packages, while also installing GHC (Glasgow Haskell Compiler) if it is not already installed.
Here's a breakdown of the command:
-
"stack": This command is part of the Stack tool, which is a build tool used for Haskell projects. Stack allows you to manage project dependencies and build your project in a consistent and reproducible way.
-
"build": This is an argument to the "stack" command, indicating that we want to build the specified packages.
-
"yesod-bin": This is the name of a Haskell package. Yesod is a web framework for Haskell, and "yesod-bin" is a package that provides command-line tools for working with Yesod applications.
-
"cabal-install": This is another Haskell package. Cabal is a build system and package manager for Haskell, and "cabal-install" is a package that provides command-line tools for working with Cabal and managing Haskell packages.
-
"--install-ghc": This is an option passed to the "stack build" command. It tells Stack to also install GHC if it is not already installed. GHC is the compiler used to build Haskell programs.
So, in summary, the command is telling Stack to build and install the "yesod-bin" and "cabal-install" packages, while also making sure that GHC is installed. This command is typically used when setting up a development environment for working with Yesod and Cabal in Haskell.