[
  {
    "path": ".devcontainer/Dockerfile",
    "content": "FROM hmemcpy/hie:8.6.5\n\n# This Dockerfile adds a non-root user with sudo access. Use the \"remoteUser\"\n# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs\n# will be updated to match your local UID/GID (when using the dockerFile property).\n# See https://aka.ms/vscode-remote/containers/non-root-user for details.\nARG USERNAME=vscode\nARG USER_UID=1000\nARG USER_GID=$USER_UID\n\n# Set to false to skip installing zsh and Oh My ZSH!\nARG INSTALL_ZSH=\"false\"\n\n# Location and expected SHA for common setup script - SHA generated on release\nARG COMMON_SCRIPT_SOURCE=\"https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/common-alpine.sh\"\nARG COMMON_SCRIPT_SHA=\"dev-mode\"\n\n# Configure apt and install packages\nRUN apk update \\\n    && apk add --no-cache wget coreutils ca-certificates \\\n    && wget -q -O /tmp/common-setup.sh $COMMON_SCRIPT_SOURCE \\\n    && if [ \"$COMMON_SCRIPT_SHA\" != \"dev-mode\" ]; then echo \"$COMMON_SCRIPT_SHA /tmp/common-setup.sh\" | sha256sum -c - ; fi \\\n    && /bin/ash /tmp/common-setup.sh \"$INSTALL_ZSH\" \"$USERNAME\" \"$USER_UID\" \"$USER_GID\" \\\n    && rm /tmp/common-setup.sh"
  },
  {
    "path": ".devcontainer/devcontainer.json",
    "content": "{\n    \"name\": \"GHC 8.6.5 with HIE\",\n    \"dockerFile\": \"Dockerfile\",\n    \"runArgs\": [],\n\n    // Use 'settings' to set *default* container specific settings.json values on container create. \n    // You can edit these settings after create using File > Preferences > Settings > Remote.\n    \"settings\": {\n        \"terminal.integrated.shell.linux\": \"/bin/bash\"\n    },\n    \n    // Use 'appPort' to create a container with published ports. If the port isn't working, be sure\n    // your server accepts connections from all interfaces (0.0.0.0 or '*'), not just localhost.\n    // \"appPort\": [],\n    \n    // Uncomment the next line to run commands after the container is created.\n    // \"postCreateCommand\": \"gcc -v\",\n    \n    // Comment out the next line if you want to run as root instead\n    \"remoteUser\": \"vscode\",\n    \n    // Add the IDs of extensions you want installed when the container is created in the array below.\n    \"extensions\": [\n        \"alanz.vscode-hie-server\"\n    ]\n}"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2020 Igal Tabachnik\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Update: there is now an [official DevContainer](https://github.com/haskell/docker-haskell/issues/41) image for HIE, please use it instead! 🙏\n\n## DevContainer for HIE (Haskell IDE Engine)\n\n### What is this?\n\nThis is a [DevContainer](https://code.visualstudio.com/docs/remote/containers) environment for Visual Studio Code, allowing automatically installing the Haskell compiler (GHC), HIE (Haskell IDE Engine), and the necessary Visual Studio Code extensions to set up a Haskell development environment with zero additional effort.\n\n### How to use this?\n\nFollow the [Getting Started](https://code.visualstudio.com/docs/remote/containers#_getting-started) instructions to configure your Visual Studio Code and Docker to use with DevContainers.\n\nPlace the `.devcontainer` directory in the root of your project, and the next time you load the project, Visual Studio Code will prompt to re-open the project in a container:\n\n![image](https://user-images.githubusercontent.com/601206/73298150-7bfac580-4215-11ea-81d3-a8fabab98e30.png)\n\n**Note**: building the container might take a few minutes until all dependencies have finished downloading.\n\n### How does it work?\n\nVisual Studio Code supports [Developing inside a Container](https://code.visualstudio.com/docs/remote/containers) - using a Docker image as a development environment. It automates the process of creating the container image, as well as installing additional required extensions into the editor.\n\nPressing **Reopen in Container** will perform the automated steps to launch the container, and set up the environment.\n\nFor more information and setup, read the official documentation: https://code.visualstudio.com/docs/remote/containers\n\n### What's in the box?\n\nThe `Dockerfile` contains the following:\n\n1. An image, based on [`hmemcpy/hie`](https://hub.docker.com/r/hmemcpy/hie), an Alpine image that contains the [Nix package manager](https://nixos.org/nix/), as well as the following:\n   * Configuration for [Cachix](https://cachix.org/) - a binary cache for Nix\n   * Glasgow Haskell Compiler (GHC) version 8.6.5\n   * HIE ([haskell-ide-engine](https://github.com/haskell/haskell-ide-engine)) for GHC 8.6.5\n2. A script to install some additional tools (such as git), as well as configuring a special user `vscode` to allow access from VSCode.\n\nThe `devcontainer.json` has some additional configuration for VSCode, in particular, the required extensions that have to be installed, and the name of the remote user (must match the one in the `Dockerfile`).\n\nThis is based on the [Alpine devcontainer](https://github.com/microsoft/vscode-dev-containers/tree/master/containers/alpine-3.10-git/.devcontainer) from Microsoft.\n"
  }
]