https://github.com/morucci/purescript-play
https://github.com/morucci/purescript-play
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morucci/purescript-play
- Owner: morucci
- Created: 2022-08-15T19:43:35.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-16T18:35:12.000Z (almost 4 years ago)
- Last Synced: 2025-06-01T23:57:43.595Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# References
https://github.com/purescript/documentation/blob/master/guides/Getting-Started.md
# Install tooling
```
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/00d73d5385b63e868bd11282fb775f6fe4921fb5.tar.gz -p purescript spago nodejs esbuild nodePackages.purescript-language-server
```
# Init a project
```
mkdir my-project
cd my-project
spago init
spago build
spago test
spago run
```
# Run the repl
```
spago repl
```
# Install deps
```
spago install lists foldable-traversable assert
```
# Build for web
```
spago bundle-app
# index.js has been created
```
Now create the index.html.
```
Euler Exercise
```
# Next
Need to read:
- https://book.purescript.org/
- https://github.com/purescript/documentation/blob/master/language/Differences-from-Haskell.md
Check Pursuit for the Purescript 'hackage': https://pursuit.purescript.org/