Index

PureScript on Raspberry Pi

I was able to build PureScript to run on a Raspberry Pi 3B. Here is how I was able to install the result of the build on a fresh install of Raspbian Stretch:

Install npm Create directory $HOME/.local/bin if you don’t already have one. Edit $HOME/.profile to add these lines at line 18: if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi Log out and back in again to get the path set properly. Download this tarball and un-tar it; it will create a file named purs . Copy the purs file to $HOME/.local/bin sudo npm install -g pulp bower

After these steps, I was able to:

Do a pulp init , pulp build , pulp run on a minimal project.

, , on a minimal project. Do a pulp psci and define simple variables and functions.

and define simple variables and functions. Add code like this and use it in a program (once I had done bower install purescript-math --save ): import Math pythagoras :: Num -> Num -> Num pythagoras a b = sqrt(a * a + b * b)

You can contact me by email, but this is more of a proof-of-concept at the moment than a full-time project, so I may not be able to assist you with fixing bugs.