foreign import subscribeEventedOnPrime
"function subscribeEventedOnPrime(n){ \
\ return function(fn){ \
\ return function(obj){ \
\ return function(){ \
\ obj.addEventListener(n, fn); \
\ return obj; \
\ }; \
\ }; \
\ }; \
\}" :: forall d a o eff.
String ->
(d -> a) ->
o ->
Eff (customEvent :: CustomEvent | eff) o
subscribeEventedOn n f o = subscribeEventedOnPrime n (\e -> do
trace "wtf" -- if this line is removed, everything seems to work
f $ newEvent e."type" e."detail"
) o
Whether a do block has one line vs more than one line, seems to effect whether or not that code actually gets called. What am I missing?