purs-eval
v1.5.0
Published
A simple PureScript expression evaluation tool
Downloads
7
Readme
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