Web applications without callbacks or side-effects.
Reflex-DOM brings the power of functional reactive programming (FRP) to the web.
Build HTML and other Document Object Model (DOM) data with a pure functional interface.
Reflex-DOM is a Functional Reactive web framework based on the Reflex FRP engine: https://reflex-frp.org/.
The reflex-dom package is a small wrapper around the reflex-dom-core package. It pulls in the
correct set of dependencies for each target platform (GHCJS, WebKitGTK, WASM, mobile, etc.).
Libraries should depend on reflex-dom-core and executables will usually depend on reflex-dom.
All of reflex-dom-core's modules are re-exported by reflex-dom.
Changes
Revision history for reflex-dom-core
0.8.1.3
Fixes for JS backend FFI
0.8.1.2
Support GHC 9.12
0.8.1.1
Support GHC 9.10
0.8.1.0
Add functions for managing history (popHistoryState and manageHistoryExposingExternalUpdates)
0.8.0.0-r1
Loosen lens version bounds
0.8.0.0
Support reflex 0.9
Breaking change: tableDynAttr now requires an Eq constraint on the row value type
Breaking change: all of the virtualList functions in Reflex.Dom.Widget.Lazy now require an Eq constraint on the row value type
0.7.0.3
Loosen version bounds of aeson, ref-tf and constraints
0.7.0.2
Require reflex >= 0.8.2.1 and switch to commutative-semigroups
0.7.0.1
Add a variant of postForms that allows the XhrRequestConfig to be specified.
0.7.0.0
(#429) (Breaking change) Remove HasJS, HasJSContext and MonadJS. This change also removes the js type parameter from Prerender. Change Prerender js t m to Prerender t m.
Reflex.Dom.WebSocket.Foreign.newWebSocket takes one fewer argument: the first argument used to be a js context
0.6.3.0
Remove calls to eval in Reflex.Dom.Builder.Immediate when compiling with ghcjs
0.6.2.1
Fix hlint complaints with newer GHC.
0.6.2.0
(#400) Set value of input elements in static renderer
0.6.1.0
Bump version bounds
Update for new dependent-map and dependent-sum version (after the “some” package split)
Add MonadAtomicRef instance for UnrunnableT
Fix (#467): Prevent multiple firings of XHR response event
Updates for GHC 8.10
Move HasSetValue from Reflex.Dom.Widget.Input to Reflex.Dom.Builder.Class and add an instance for TextAreaElementConfig
Add now to the MonadHold instance for UnrunnableT
0.6.0.0
(#375) (Breaking change) Expose resized dimensions from resizeDetector, resizeDetectorWithStyle, and resizeDetectorWithAttrs from Reflex.Dom.Widget.Resize.
(#374) (Breaking change) Provide text clipboard data as value of Paste event.
(#348) (Breaking change) Make XHR response headers case insensitive by changing _xhrResponse_headers :: Map Text Text to _xhrResponse_headers :: Map (CI Text) Text.
(#225) (Breaking change) Add a functional dependency to HasDomEvent.
(#342) (Breaking change) The mouse wheel event is now a WheelEventResult rather than (). This provides information about the wheel’s motion beyond the fact that it merely moved.