Shpadoinkle-backend-pardiff: A Virtual Dom in pure Haskell, based on Html as an Alignable Functor.

[ bsd3, library, web ] [ Propose Tags ]

Virtual DOM diffing in pure Haskell. The diffing is a lawful usage of alignWith from the Data.These package. This implementation stores a reference to the RawNode for each node in the virtual tree, merging keyed and unkeyed virtual DOM techniques.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.0.1, 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.3.0.0, 0.3.0.1
Change log CHANGELOG.md
Dependencies base (>=4.12.0 && <4.16), compactable (>=0.1.2 && <0.2), containers (>=0.6.0 && <0.7), file-embed (>=0.0.11 && <0.1), ghcjs-dom (>=0.9.4 && <0.20), jsaddle (>=0.9.7 && <0.20), lens (>=4.17.1 && <5.0), monad-control (>=1.0.2 && <1.1), mtl (>=2.2.2 && <2.3), neat-interpolation (>=0.3.2 && <0.6), random (>=1.1 && <1.3), semialign (>=1 && <1.2), Shpadoinkle, text (>=1.2.3 && <1.3), these (>=1 && <1.2), transformers-base (>=0.4.5 && <0.5), unliftio (>=0.2.12 && <0.3), uuid (>=1.3.13 && <1.4) [details]
License BSD-3-Clause
Author Isaac Shapira
Maintainer fresheyeball@protonmail.com
Category Web
Source repo head: git clone https://gitlab.com/fresheyeball/Shpadoinkle.git
Uploaded by fresheyeball at 2020-10-07T15:58:32Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 853 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user [build log]
All reported builds failed as of 2020-10-07 [all 1 reports]

Readme for Shpadoinkle-backend-pardiff-0.2.0.0

[back to package description]

Shpadoinkle Backend ParDiff

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

Shpadoinkle's ParDiff backend is a virtual dom diffing system written in pure Haskell. It currently serves as the canonical backend for Shpadoinkle, such that the behavior of other backends should conform.

The virtual tree in ParDiff contains a reference to the RawNode for each element. Merging unkeyed and keyed virtual dom techniques together. This allows for rendering to be performed in a keyed fashion for all nodes, while not requiring additional memory or developer overhead.

The diffing itself is a lawful usage of alignWith from the Data.These package. By modeling Html as an Alignable Functor, you get principled diffing with clear separation of concerns.

IO is done using JSaddle, and works with both GHC and GHCjs.