A simple PureScript expression evaluation tool
Go to file
dependabot[bot] 2963659a0b
Some checks failed
release / release (push) Has been cancelled
Run TODO to Issue / build (push) Has been cancelled
update-flake-lock / lockfile (push) Has been cancelled
build(deps): bump cachix/install-nix-action from 29 to 30
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>
2024-10-07 10:06:56 -03:00
.github build(deps): bump cachix/install-nix-action from 29 to 30 2024-10-07 10:06:56 -03:00
src fix: library API change 2023-08-21 15:13:51 -03:00
test feat: upgrade purs-nix and change mock server to httpurple 2024-07-11 15:01:43 -03:00
.gitignore fix: npm bin not being found 2022-11-02 06:21:09 -03:00
.npmignore feat: add purs-eval npm publication 2022-11-02 04:15:41 -03:00
CHANGELOG.md chore(main): release 1.5.0 2024-07-11 15:08:31 -03:00
flake.lock feat: upgrade purs-nix and change mock server to httpurple 2024-07-11 15:01:43 -03:00
flake.nix fix: npm published version not running 2024-07-11 15:02:13 -03:00
LICENSE feat: Initial commit 2022-11-02 04:11:23 -03:00
package-lock.json chore(main): release 1.5.0 2024-07-11 15:08:31 -03:00
package.json chore(main): release 1.5.0 2024-07-11 15:08:31 -03:00
README.md doc: improve readme description 2024-09-10 09:34:00 -03:00

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