@hackage / reflex-dom-core

Functional Reactive Web Apps with Reflex

Latest0.8.1.4

About

Metadata

  • Last updated , by alexfmpe
  • License BSD-3-Clause
  • Categories FRP, Web Development, GUI
  • Maintained by: ryan.trinkle@gmail.com

  • Lottery factor: 5

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    use-template-haskell (on by default)

    Use template haskell to generate lenses

    use-reflex-optimizer (off by default)

    Use the GHC plugin Reflex.Optimizer on some of the modules in the package. This is still experimental.

    expose-all-unfoldings (off by default)

    Build the library with -fexpose-all-unfoldings which can help client code specialize better

    profile-reflex (off by default)

    Add a layer of profiling to all Reflex events in the system

    split-these (on by default)

    Use split these/semialign packages

    hydration-tests (on by default)

    Whether to run the hydration tests (currently only available on linux)

    gc-tests (on by default)

    Whether to run the gc tests (currently only available on linux)

    hlint-tests (off by default)

    Whether to run the hlint tests

Readme

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.