I would recommend using the official Haskell Docker image instead: https://hub.docker.com/_/haskell
A Haskell development container for GitHub Codespaces.
You can use this container by putting this in your .devcontainer.json file:
{
"image": "ghcr.io/tfausak/haskell-codespace:ghc-9.2",
"postCreateCommand": "cabal update"
}The postCreateCommand is not required, but it is recommended.
This image includes the following tools: