Reflex-DOM is a framework for building web applications in Haskell, based on the Functional Reactive Programming library Reflex.
Questions tagged [reflex-dom]
18 questions
0
votes
1 answer
Monadwidget in Frontend type
Some of the examples use monadwidget, with mainwidget. While obelisk generated project expects you to use a frontend data type. I couldn't find a reference to this type in the guide, but how would you use monadwidget within the type?

janat08
- 1,725
- 2
- 16
- 27
0
votes
1 answer
getAndDecodeResponseEvent runs 3 times, instead of just once
This little pice of code has me confused:
respCount counts to 3 in case the url exists, to 2 in case of 404, but shouldn't it only count to 1? Also, the actual request gets issued just once.
I'm on the latest develop branch of reflex,…

Schoon
- 394
- 1
- 9
0
votes
1 answer
Cannot map through Dynamic: No instance for (Functor (Dynamic Spider))
My intention is to alternate the colour of a div between bright red and dark
red as a button gets pressed, starting with dark red.
I have this code:
{-# LANGUAGE
OverloadedStrings
#-}
module Main where
import Data.Map (Map)
import…

Ignat Insarov
- 4,660
- 18
- 37