lexical error
Closed this issue · 1 comments
davidsd commented
I'm getting a mystifying lexical error when I try to compile JQuery.hs with Fay:
A web handler threw an exception. Details:
/Users/davidsd/.cabal/share/fay-jquery-0.3.0.0/src/JQuery.hs:149:18:
lexical error in string/character literal at character '('
The relevant line in JQuery.hs doesn't seem to have any parentheses in it:
ajax' :: AjaxSettings (Automatic a) (Automatic b) -> Fay () -- line 148. error in the next line?
ajax' = ffi "\
\ (function (o) { \
\ delete o['instance']; \
\ for (var p in o) { \
\ if (/\\$39\\$/.test(p)) { \
\ o[p.replace(/\\$39\\$/g, '')] = o[p]; \
\ delete o[p]; \
\ } \
\ } \
\ console.log(o); \
\ return jQuery.ajax(o); \
\ })(%1)"
Any ideas what's happening here?
davidsd commented
Apologies -- I was using includeDirs where I should have been using packages.