reflex-test-host: reflex host methods for testing without external events

[ bsd3, frp, library, reflex ] [ Propose Tags ]

Please see the README on GitHub at

[Skip to Readme]
Versions [RSS] [faq],,,
Change log
Dependencies base (>=4.7 && <5), dependent-sum, lens, mtl, primitive, ref-tf, reflex, these, transformers [details]
License BSD-3-Clause
Copyright 2020 Peter Lu
Author pdlla
Category FRP, Reflex
Home page
Bug tracker
Source repo head: git clone
Uploaded by pdlla at 2020-05-31T16:40:47Z
Distributions NixOS:
Downloads 311 total (11 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-05-31 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


Readme for reflex-test-host-

[back to package description]


This library contains functionality for writing unit tests for the "model" portion of your reflex-frp apps. Please see "test/Reflex/Test/SimpleHostSpec.hs" for basic usage example. You can find more usage examples in this project and this one.

Note that TriggerEvent class constraint is not supported. It could be added with some effort but breaks the "pureness" of the test (at least from its inputs) so I don't suggest it. You can still test parts of your network that don't require TriggerEvent.

There is also a monadic testing module in this library. You can see usage examples in "test/Reflex/Test/Monad/HostSpec.hs".

PRs are welcome. Perhaps you have some ideas to make the interface more useable.