Skip to content

Better foreign in Snabbdom backend, plus integrating "Nix the Snabbdom Bundle"

Athan Clark requested to merge better-foreign-snabbdom-20210923 into master

This MR integrates !199 (closed), but does so with the nix ecosystem built around Shpadoinkle. It does this in a few different ways:

  • it uses github.com/athanclark/snabbdom, which has nix support for building snabbdom from source via parcel
  • it adds a special derivation to Shpadoinkle-backend-snabbdom for Setup_src.js via snabbdom-bundle.nix
  • it integrates this snabbdom-bundle.nix into the primary Shpadoinkle-backend-snabbdom derivation by requiring it as a build input, and copying snabbdom-bundle's build output for the template haskell at ./Shpadoinkle/Backend/Snabbdom/Setup.js

This MR also reduces the foreign imports in Shpadoinkle-backend-snabbdom by utilizing GHCJS.DOM instead.

Edited by Athan Clark

Merge request reports