Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Haskell Installation for Theia-Full #479

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions theia-full-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,26 @@ RUN apt-get clean && \
# Change permissions to make the `yang-language-server` executable.
RUN chmod +x ./plugins/yangster/extension/server/bin/yang-language-server

USER theia

# Haskell Installation

ARG ghcup_version=0.1.14.1
ARG ghc_version=9.0.1
ARG haskell_stack_ubuntu_version=1.5.1-1

RUN wget https://downloads.haskell.org/~ghcup/${ghcup_version}/x86_64-linux-ghcup-${ghcup_version}
RUN mv x86_64-linux-ghcup-${ghcup_version} ghcup && chmod +x ghcup
RUN ./ghcup install ghc $ghc_version
RUN ./ghcup set ghc $ghc_version
RUN ./ghcup install cabal
# Update the Path to find everything
ENV PATH="/home/theia/.cabal/bin:/home/theia/.ghcup/bin:${PATH}"
# Get Haskell Stack
USER root
RUN apt-get update && apt-get install haskell-stack=$haskell_stack_ubuntu_version -y
RUN stack upgrade --binary-only

USER theia
EXPOSE 3000
# Configure Theia
Expand Down
3 changes: 2 additions & 1 deletion theia-full-docker/latest.package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
"vscode-ruby": "https://github.com/rubyide/vscode-ruby/releases/download/v0.25.0/ruby-0.25.0.vsix",
"vscode-dart": "https://github.com/Dart-Code/Dart-Code/releases/download/v3.8.1/Dart-Code.dart-code-3.8.1.vsix",
"vscode-flutter": "https://github.com/Dart-Code/Flutter/releases/download/v3.8.1/Dart-Code.flutter-3.8.1.vsix",
"haskell-syntax-highlighting": "https://open-vsx.org/api/justusadam/language-haskell/3.3.0/file/justusadam.language-haskell-3.3.0.vsix",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License looks good: BSD-3-Clause 👍

"plantuml": "https://open-vsx.org/api/jebbs/plantuml/2.14.0/file/jebbs.plantuml-2.14.0.vsix",
"yangster": "https://open-vsx.org/api/typefox/yang-vscode/2.0.3/file/typefox.yang-vscode-2.0.3.vsix"
}
}
}
3 changes: 2 additions & 1 deletion theia-full-docker/next.package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
"vscode-ruby": "https://github.com/rubyide/vscode-ruby/releases/download/v0.25.0/ruby-0.25.0.vsix",
"vscode-dart": "https://github.com/Dart-Code/Dart-Code/releases/download/v3.8.1/Dart-Code.dart-code-3.8.1.vsix",
"vscode-flutter": "https://github.com/Dart-Code/Flutter/releases/download/v3.8.1/Dart-Code.flutter-3.8.1.vsix",
"haskell-syntax-highlighting": "https://open-vsx.org/api/justusadam/language-haskell/3.3.0/file/justusadam.language-haskell-3.3.0.vsix",
"plantuml": "https://open-vsx.org/api/jebbs/plantuml/2.14.0/file/jebbs.plantuml-2.14.0.vsix",
"yangster": "https://open-vsx.org/api/typefox/yang-vscode/2.0.3/file/typefox.yang-vscode-2.0.3.vsix"
}
}
}