I'm learning PureScript and Calculus for the first time this summer. Behold.
- Node - JavaScript runtime.
- PureScript. Try
npm i -g purescript. ThenpmNode Package Manager executable should have been installed alongsidenode. - Spago - the PureScript package manager. Try
npm i -g spago.
It's also helpful to set up stack. After installing, run stack config set resolver ghc-8.6.5 because GCH 8.6.* seems to have better ecosystem support than 8.8.*, and then run stack setup to install the Haskell compiler. Make sure $HOME/.local/bin is in your path, as that's where stack install will place executable binaries.
/path/to/ $ git clone git@github.com:deciduously/math-tools.git
$ cd math-tools
/path/to/math-tools/ $ spago build
[info] Installation complete.
Compiling Type.Data.RowList
Compiling Partial
// lots of output
[info] Build succeeded.
$
Use spago repl to enter a project REPL, spago test to run the tests, or spago run to execute main. Use spago bundle-app to produce the optimized production bundle at index.js.