Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 711 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 711 Bytes

purs-eval

A simple PureScript expression evaluation tool. It uses try.purescript.org as a compilation backend; for this reason, it currently does not support embedding local files or modules.

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:rowtype-yoga/purs-eval 

# Pipe node (>v18)
echo -e $EXAMPLE | nix run github:rowtype-yoga/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