reactive-banana VS dunai

Compare reactive-banana vs dunai and see what are their differences.


Library for functional reactive programming in Haskell. (by HeinrichApfelmus)


Classic FRP, Arrowized FRP, Reactive Programming, and Stream Programming, all via Monadic Stream Functions (by ivanperez-keera)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
reactive-banana dunai
5 6
519 187
- -
5.2 8.7
3 months ago about 2 months ago
Haskell Haskell
BSD 3-clause "New" or "Revised" License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of reactive-banana. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-12.
  • Haskell, JS, and WebDev?
    3 projects | /r/haskell | 12 Jan 2023
    As I grew up on a Macintosh, I was always interested in graphical user interfaces. In my free time, I'm currently working on refreshing my reactive-banana library so that it will hopefully work well with the upcoming JavaScript backend. (The library relies on a few non-trivial garbage collector features, which were not implemented in GHCJS a decade ago. Essentially, I ended up with a program that gave different results, depending on whether it was compiled with GHC native or with GHCJS. 😅)
  • How to prevent a deadlock in reactive-banana with event-switching? (Exception: thread blocked indefinitely in an MVar operation)
    2 projects | /r/haskell | 1 Aug 2021
    I am building a GUI-application in GTK and try to use reactive-banana as the style of FRP seems a lot better to work with in Haskell. The basis works: receiving events from the GTK-side lets me properly update the internal state. The problem however is when I want to create my own events and hook them onto the rest of the event-network I get a deadlock. I already sent an issue on Github, , but looking at the commits it seems it is not that actively maintained anymore. I was able to find some kind of work-around for a basic use-case, but it is not enough when dealing with an event-stream that will fire multiple events. I created the following test-code to check where the problem lies (a bit simplified from the one on Github): {-# LANGUAGE RecursiveDo, LambdaCase #-} module Main where import Control.Monad.IO.Class (liftIO) import qualified Reactive.Banana as B import qualified Reactive.Banana.Frameworks as BF
    2 projects | /r/haskell | 1 Aug 2021
    There are some examples that also use event-switching, like , which also seems to use execute. They use <$ though instead of <$>:


Posts with mentions or reviews of dunai. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-06.
  • Interactive animations
    11 projects | /r/haskell | 6 May 2023
    Yes, and the new library dunai was just mentioned in this subreddit days ago.
  • Looking for projects that need developers.
    9 projects | /r/haskell | 9 Apr 2023
    I'd love to have help with Yampa & Dunai. Both are related FRP frameworks. Yampa has been around for 20 years, dunai has been around for 8. Both have regular releases every 2 months.
  • [ANN] Yampa 0.13.6
    3 projects | /r/haskell | 12 Aug 2022
    If you haven't, I recommend you take a look at dunai . Dunai allows easier extension using custom monads, and has specific support for ExceptT.

What are some alternatives?

When comparing reactive-banana and dunai you can also consider the following projects:

reflex - Interactive programs without callbacks or side-effects. Functional Reactive Programming (FRP) uses composable events and time-varying values to describe interactive systems as pure functions. Just like other pure functional code, functional reactive code is easier to get right on the first try, maintain, and reuse.

DefendTheKing - A simple multiplayer RTS game

Yampa - Functional Reactive Programming domain-specific language for efficient hybrid systems

rhine - Haskell Functional Reactive Programming framework with type-level clocks

reactive-banana-sdl2 - reactive banana to sdl2 bindings

reflex-dom - 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.

yampa-glut - Yampa adapter for GLUT

reactive-bacon - FRP (functional reactive programming) framework inspired by RX and Iteratee


netwire - FRP library