@hackage Shpadoinkle-isreal0.0.0.2

Isreal Swan will make a snowman for you!

Isreal Swan

Goldwater Haddock GPL-3 built with nix Hackage Hackage Deps Hackage CI

Snowman as a service

If you build me a snowman, then I'll build one for you.

This service is hosted at https://isreal.shpadoinkle.org. It allows you to post Shpadoinkle code and see the resulting UI in your browser. For example, let's say we have the local file Hello.hs, containing:

module Main where


import           Shpadoinkle
import           Shpadoinkle.Backend.ParDiff
import           Shpadoinkle.Html


view :: () -> Html m ()
view _ = "hello world"


main :: IO ()
main = runJSorWarp 8080 $ simple runParDiff () view getBody

You can send this to Isreal Swan with the following curl command:

curl -X POST -H "Content-Type:application/octet-stream" --data-binary @Hello.hs \
  https://isreal.shpadoinkle.org/compile/hello-token?nonce=0

You should increment the nonce for browser cache busting.

Notice hello-token in the URL. It's on you to make this a unique token for your work, as the system is open-ended (any arbitrary (uri encoded) string is fine). Reusing this token will result in incremental rebuilds, which are much faster. Also please note, these spaces are ephemeral and will be deleted.

The curl command will respond with Either an error message from the compiler or a message indicating success. If your code compiled successfully, you will be able to see the resulting UI here:

https://isreal.shpadoinkle.org/serve/hello-token/index.html

Deps & Such

Many common Haskell dependencies are provided. The environment is based on the cabal file located here.

Clean Up

Clean up your token:

curl -X DELETE http://localhost:8080/clean/hello-token

GPL License

Shpadoinkle Isreal (all files within this directory), are provided under the terms of the GNU General Public License v3.0