Cleaner, hack-free way to pass contexts to Elm view functions.
Simple port of arowM/elm-html-with-context to make it work with rtfeldman/elm-css.
A constructor for WithContext from Html.
Convert to Html.
Custom node.
Text node. We have to explicitly define this, because it's the only Html function that doesn't take a List Html msg as an argument.
This function is supposed to be used with functions in WithContext.Lazy.
Please see actual use case for detail.
An opaque type for representing
Htmlwith a context.Nodeis a wrapper for "a function that can take a list of functions that take a context and return aHtmlvalue, and return a function that takes a context and returns aHtmlvalue".Leafis a wrapper for "a function that takes a context, and returns aHtmlvalue".