I need to use
navigator.mediaDevices.getUserMedia and trying to wrap in Purescript. I found https://github.com/puffnfresh/purescript-webrtc, but it’s for an old version of Purescript.
I’m trying to update it here: https://gist.github.com/tbenst/853eb5c017d2e0b00ce11b0716d651da. I figure that I should replace
:: * with
:: Type, and I’m guessing
:: ! is
:: Effect but don’t actually know.
Now I get a compile error on
Error found: at src/MediaStream.purs:44:1 - 44:2 (line 44, column 1 - line 44, column 2) Unable to parse module: Unexpected token ','
Any ideas? thanks!
Edit: fixed links