mirror of
https://github.com/rowtype-yoga/purs-eval.git
synced 2024-11-26 11:26:48 +03:00
A simple PureScript expression evaluation tool
.github/workflows | ||
src | ||
test | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
purs-eval
A simple PureScript expression evaluation tool
Usage
EXAMPLE=cat <<EOF
module Main where
import Effect.Console (log)
main = log "hello"
EOF
# With npm
echo $EXAMPLE | npx purs-eval
# With nix
echo $EXAMPLE | nix run github:klarkc/purs-eval
# Piping to node
echo $EXAMPLE | npx purs-eval | nix run nixpkgs#nodejs -- --experimental-network-imports --input-type module