From 325822c26dda82064105461a768c5da3b1b616cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Kov=C3=A1cs?= Date: Thu, 7 Nov 2024 15:35:18 +0100 Subject: [PATCH 1/2] Add "setting" installed tools in ghcup to README --- README.md | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 64fa062..3de04cf 100644 --- a/README.md +++ b/README.md @@ -280,24 +280,20 @@ Recent versions of the following Haskell tools need to be installed and in your - Haskell lexer generator [Alex](https://haskell-alex.readthedocs.io/en/stable/) - Haskell parser generator [Happy](https://haskell-happy.readthedocs.io/en/stable/) -We suggest the following installation. - -1. First install [GHCup](https://www.haskell.org/ghcup/). When asked, answer Yes to adding the ghcup installation directory to PATH. - - On Windows: copy the install script from the GHCup webpage into PowerShell. The installation might take a long time (10+ minutes), apparently because of the Windows Defender antivirus checking the installation very slowly. -2. Then use it to install Stack and GHC. On Windows, starting from here, input the commands in Git Bash. - ``` - ghcup install stack latest - ghcup install ghc 9.4.8 - ``` - If you have not yet done it, add to your system `PATH` the location where GHCup installs tools. - -3. Finally, use Stack to install the remaining tools. +We suggest the following installation. + +1. First install [GHCup](https://www.haskell.org/ghcup/). + - When asked, answer Yes to adding the ghcup installation directory to PATH. + - Also answer Yes to installing `stack`. + - On Windows: copy the install script from the GHCup webpage into PowerShell. The installation might take a long time (10+ minutes), apparently because of the Windows Defender antivirus checking the installation very slowly. After this is finished, work in Git Bash for all of the following steps. +2. You can use `ghcup tui` to review your installed versions of Haskell tools and to install/uninstall them. After installing a tool, you have to "set" it to make it visible in your shell. Install and set the latest Stack version, and also GHC 9.4.8. +4. Use Stack to install the remaining tools. ``` stack install alex happy BNFC ``` This might alert you in the end that you do not have the installation directory in your system `PATH`; in this case, go and add it there. -4. Verify that these tools are working by querying their version: +5. Verify that these tools are working by querying their version: ``` stack --version ghc --version From a03935d5870c76af8dca4968776f50cb90182f64 Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Thu, 7 Nov 2024 17:04:32 +0100 Subject: [PATCH 2/2] Fix numbering --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7b8c8ef..c630555 100644 --- a/README.md +++ b/README.md @@ -280,20 +280,20 @@ Recent versions of the following Haskell tools need to be installed and in your - Haskell lexer generator [Alex](https://haskell-alex.readthedocs.io/en/stable/) - Haskell parser generator [Happy](https://haskell-happy.readthedocs.io/en/stable/) -We suggest the following installation. +We suggest the following installation. 1. First install [GHCup](https://www.haskell.org/ghcup/). - When asked, answer Yes to adding the ghcup installation directory to PATH. - Also answer Yes to installing `stack`. - On Windows: copy the install script from the GHCup webpage into PowerShell. The installation might take a long time (10+ minutes), apparently because of the Windows Defender antivirus checking the installation very slowly. After this is finished, work in Git Bash for all of the following steps. 2. You can use `ghcup tui` to review your installed versions of Haskell tools and to install/uninstall them. After installing a tool, you have to "set" it to make it visible in your shell. Install and set the latest Stack version, and also GHC 9.4.8. -4. Use Stack to install the remaining tools. +3. Use Stack to install the remaining tools. ``` stack install alex happy BNFC ``` This might alert you in the end that you do not have the installation directory in your system `PATH`; in this case, go and add it there. -5. Verify that these tools are working by querying their version: +4. Verify that these tools are working by querying their version: ``` stack --version ghc --version