I posted a question on Stack Overflow a few days ago but it looks like this is actually the right venue for help questions. I really appreciate the help, and if there’s a better way for me to ask for assistance with this sort of thing I’m happy to change to whatever’s easiest.
I think you’re not actually invoking the callback, but rather throwing it away with the
_ <-. Try removing the
_ <- and the compiler will tell you what type of thing you’re throwing away if it’s not
Wow I’m embarrassed I missed this. I was throwing away a value of type
Effect (Effect Unit). I changed map to bind and all is well. Thank you so much for taking a look at this, and thank you for maintaining this beautiful language. I’ve really enjoyed learning it.