Repository: hmemcpy/haskell-hie-devcontainer
Branch: master
Commit: 58baf3972136
Files: 4
Total size: 5.7 KB
Directory structure:
gitextract_iaxe5ya_/
├── .devcontainer/
│ ├── Dockerfile
│ └── devcontainer.json
├── LICENSE
└── README.md
================================================
FILE CONTENTS
================================================
================================================
FILE: .devcontainer/Dockerfile
================================================
FROM hmemcpy/hie:8.6.5
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID
# Set to false to skip installing zsh and Oh My ZSH!
ARG INSTALL_ZSH="false"
# Location and expected SHA for common setup script - SHA generated on release
ARG COMMON_SCRIPT_SOURCE="https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/common-alpine.sh"
ARG COMMON_SCRIPT_SHA="dev-mode"
# Configure apt and install packages
RUN apk update \
&& apk add --no-cache wget coreutils ca-certificates \
&& wget -q -O /tmp/common-setup.sh $COMMON_SCRIPT_SOURCE \
&& if [ "$COMMON_SCRIPT_SHA" != "dev-mode" ]; then echo "$COMMON_SCRIPT_SHA /tmp/common-setup.sh" | sha256sum -c - ; fi \
&& /bin/ash /tmp/common-setup.sh "$INSTALL_ZSH" "$USERNAME" "$USER_UID" "$USER_GID" \
&& rm /tmp/common-setup.sh
================================================
FILE: .devcontainer/devcontainer.json
================================================
{
"name": "GHC 8.6.5 with HIE",
"dockerFile": "Dockerfile",
"runArgs": [],
// Use 'settings' to set *default* container specific settings.json values on container create.
// You can edit these settings after create using File > Preferences > Settings > Remote.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
// Use 'appPort' to create a container with published ports. If the port isn't working, be sure
// your server accepts connections from all interfaces (0.0.0.0 or '*'), not just localhost.
// "appPort": [],
// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "gcc -v",
// Comment out the next line if you want to run as root instead
"remoteUser": "vscode",
// Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": [
"alanz.vscode-hie-server"
]
}
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2020 Igal Tabachnik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# Update: there is now an [official DevContainer](https://github.com/haskell/docker-haskell/issues/41) image for HIE, please use it instead! 🙏
## DevContainer for HIE (Haskell IDE Engine)
### What is this?
This 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.
### How to use this?
Follow 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.
Place 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:

**Note**: building the container might take a few minutes until all dependencies have finished downloading.
### How does it work?
Visual 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.
Pressing **Reopen in Container** will perform the automated steps to launch the container, and set up the environment.
For more information and setup, read the official documentation: https://code.visualstudio.com/docs/remote/containers
### What's in the box?
The `Dockerfile` contains the following:
1. 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:
* Configuration for [Cachix](https://cachix.org/) - a binary cache for Nix
* Glasgow Haskell Compiler (GHC) version 8.6.5
* HIE ([haskell-ide-engine](https://github.com/haskell/haskell-ide-engine)) for GHC 8.6.5
2. A script to install some additional tools (such as git), as well as configuring a special user `vscode` to allow access from VSCode.
The `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`).
This is based on the [Alpine devcontainer](https://github.com/microsoft/vscode-dev-containers/tree/master/containers/alpine-3.10-git/.devcontainer) from Microsoft.
gitextract_iaxe5ya_/ ├── .devcontainer/ │ ├── Dockerfile │ └── devcontainer.json ├── LICENSE └── README.md
Condensed preview — 4 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (6K chars).
[
{
"path": ".devcontainer/Dockerfile",
"chars": 1149,
"preview": "FROM hmemcpy/hie:8.6.5\n\n# This Dockerfile adds a non-root user with sudo access. Use the \"remoteUser\"\n# property in devc"
},
{
"path": ".devcontainer/devcontainer.json",
"chars": 978,
"preview": "{\n \"name\": \"GHC 8.6.5 with HIE\",\n \"dockerFile\": \"Dockerfile\",\n \"runArgs\": [],\n\n // Use 'settings' to set *de"
},
{
"path": "LICENSE",
"chars": 1071,
"preview": "MIT License\n\nCopyright (c) 2020 Igal Tabachnik\n\nPermission is hereby granted, free of charge, to any person obtaining a "
},
{
"path": "README.md",
"chars": 2681,
"preview": "# Update: there is now an [official DevContainer](https://github.com/haskell/docker-haskell/issues/41) image for HIE, pl"
}
]
About this extraction
This page contains the full source code of the hmemcpy/haskell-hie-devcontainer GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 4 files (5.7 KB), approximately 1.5k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.