Posts

Showing posts from April, 2023

VSCode for Haskell Development

Image
Haskell is a purely functional programming language. The VSCode extension Haskell for Visual Studio Code has been configured to develop Haskell code in the Docker container remotely. This blog explains how to use the VSCode editor to develop Haskell programs. The features , where you can find the table, summarises the features that HLS supports. Many of these are standard LSP features. Install using docker VSCode development Complete Docker image for Haskell Features Install using docker Create the following Dockerfile 1 : FROM ubuntu:20.04 ARG USERNAME=ojitha ARG USER_UID=1000 ARG USER_GID=$USER_UID # Create the user RUN groupadd --gid $USER_GID $USERNAME \ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ && apt-get update \ && apt-get install -y sudo \ && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ && chmod 0440 /etc/sudoers.d/$USERNAME \ && apt-get install buil