GitHub codespaces - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

Has anyone managed to get a Haskell project working in codespaces (VSCode online)?

https://github.com/features/codespaces

@TheMatten Imagine being able to edit KB notes in the browser, and have the site auto-update!

Your instant dev environment
Sridhar Ratnakumar

In the past I tried getting Nix working via docker (via devcontainers feature of vscode), but it had all sorts of problems.

TheMatten

I like the idea, but I'm not keen on using GitHub for it - I've previously tried https://gitpod.io/, though I haven't really did anything real there

Sridhar Ratnakumar

So what I'm imaging is an edit button in kb.haskell.org - which users can click and it takes them to either Codespaces or Gitpod. There they get full vscode environment, with markdown syntax highlighting, wiki-links (even graph extension) ... including terminal, on which you can run neuron or ema (or hakyll) and get a live-preview http site (I know codespaces supports it via port forwarding).

You get to edit the KB in a fork and get to see your changes instantly. Then you 'git commit' and open a PR.

Sridhar Ratnakumar

Being able to compile Haskell is necessary ... however if docker run from arbitrary image just works, we can put the haskell static site code in a docker image and push to the registry.