mirror of
https://github.com/rowtype-yoga/purs-eval.git
synced 2024-11-22 01:42:18 +03:00
A simple PureScript expression evaluation tool
2963659a0b
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 29 to 30. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v29...v30) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.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. 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