No description
- Haskell 75.1%
- Nix 23.1%
- Shell 1.8%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| app | ||
| scripts | ||
| src/Playground | ||
| .envrc | ||
| .gitignore | ||
| .stylish-haskell.yaml | ||
| cabal.project | ||
| CHANGELOG.md | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| playground-hs.cabal | ||
| pre-deploy-to.sh | ||
| README.md | ||
playground-hs
In-telegram feature-rich playground for Haskell with libraries support.
Deployment
Warning: the first building of the environment can take more than 1 hour due to the huge lack of caches.
Add new input into /etc/nixos/flake.nix, use provided module, and configure playground-hs:
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs;
playground-hs.url = "https://git.sandwitch.dev/sand-witch/playground-hs/archive/master.tar.gz";
};
outputs = { self, nixpkgs, playground-hs, ... }: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules =
[ playground-hs.nixosModules.${system}.default
{
services.playground-hs = {
enable = true;
envFile = "/path/to/the/environment/file.env";
workersCount = 8; # optional
timeout = { # optional
compiler = {
term = 2;
kill = 3;
};
prog = {
term = 1;
kill = 2;
};
};
};
}
...
];
};
};
}
The environment file should contain a telegram bot token in the following form:
TG_TOKEN=...
Usage
You can play with this playground, using https://t.me/runhaskellbot
Type /help_haskell to get more info.