如何在 GHCJS 中进行多行外国进口?我有一个跨越多行的 javascript 块:
foreign import javascript unsafe
"{ var x = 41;\
\ $r = x + 1; \
\}"
answerToGreatestQuestion :: IO (JSRef Double)
我收到如下错误:
lexical error in string/character literal at character 'i'
指向\
字符。这里发生了什么?