mirror of
https://github.com/rowtype-yoga/purs-eval.git
synced 2024-11-26 00:07:52 +03:00
A simple PureScript expression evaluation tool
.github | ||
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