mirror of
https://github.com/rowtype-yoga/purs-eval.git
synced 2024-11-22 18:03:57 +03:00
A simple PureScript expression evaluation tool
.github | ||
src | ||
test | ||
.gitignore | ||
.npmignore | ||
CHANGELOG.md | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
purs-eval
A simple PureScript expression evaluation tool
Usage
EXAMPLE="module Main where\nimport Effect.Console (log)\nmain = log \"hello from PS\""
# With npm
echo -e $EXAMPLE | npx purs-eval
# With nix
echo -e $EXAMPLE | nix run github:klarkc/purs-eval
# Pipe node (>v18)
echo -e $EXAMPLE | nix run github:klarkc/purs-eval | nix run nixpkgs#nodejs -- --experimental-network-imports --input-type module
# or with npx
echo -e $EXAMPLE | npx purs-eval | node --experimental-network-imports --input-type module