Skip to content

Conversation

@mpilgrem
Copy link
Contributor

@mpilgrem mpilgrem commented Oct 1, 2025

Motivation: a discussion on Matrix where it was suggested that some people who get Stack via GHCup are missing the Stack hook when they want to use the hook. This pull request proposes some minor changes to existing GHCup's online documentation to:

  • emphasise (pull forward) that the recommended way to get the hook is to run the commands that install GHC and the Haskell Toolchain; and

  • to bring to people's attention that those commands can safely be run again at any time.

More specifically:

  • Reorganises the existing 'Stack hooks' content to bring forward how to get the hook (using the recommended method).

  • In three relevant places, tells users that the commands to install GHCup and the Haskell Toolchain can safely be run again at any time.

  • Introduces that the commands to install GHCup and the Haskell Toolchain use a sh script (true on all platforms).

  • Makes the steps to get the Stack hook manually relevant to all operating systems (not just Unix-like ones).

  • Updates the text for the passage of time: e.g. Stack 2.9.1 is no longer 'new'.

  • Uses language about Stack that is closer to the language that Stack's online documentation uses about itself.

  • Also fixes a closing </p> tag (present as <p>).

'Tested' by using mkdocs build locally and reading the resulting pages.

Reorganises the existing 'Stack hooks' content to bring forward how to get the hook (using the recommended method).

In three relevant places, tells users that the commands to install GHCup and the Haskell Toolchain can safely be run again at any time.

Introduces that the commands to install GHCup and the Haskell Toolchain use a `sh` script (true on all platforms).

Makes the steps to get the Stack hook manually relevant to all operating systems (not just Unix-like ones).

Updates the text for the passage of time: e.g. Stack 2.9.1 is no longer 'new'.

Uses language about Stack that is closer to the language that Stack's online documentation uses about itself.

Also fixes a closing </p> tag (present as <p>).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant