{"action":"created","issue":{"url":"https://api.github.com/repos/ndmitchell/hlint/issues/142","labels_url":"https://api.github.com/repos/ndmitchell/hlint/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/ndmitchell/hlint/issues/142/comments","events_url":"https://api.github.com/repos/ndmitchell/hlint/issues/142/events","html_url":"https://github.com/ndmitchell/hlint/issues/142","id":91328456,"number":142,"title":"GHCJS `foreign import javascript` parse error","user":{"login":"mtolly","id":1427698,"avatar_url":"https://avatars.githubusercontent.com/u/1427698?v=3","gravatar_id":"","url":"https://api.github.com/users/mtolly","html_url":"https://github.com/mtolly","followers_url":"https://api.github.com/users/mtolly/followers","following_url":"https://api.github.com/users/mtolly/following{/other_user}","gists_url":"https://api.github.com/users/mtolly/gists{/gist_id}","starred_url":"https://api.github.com/users/mtolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtolly/subscriptions","organizations_url":"https://api.github.com/users/mtolly/orgs","repos_url":"https://api.github.com/users/mtolly/repos","events_url":"https://api.github.com/users/mtolly/events{/privacy}","received_events_url":"https://api.github.com/users/mtolly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ndmitchell/hlint/labels/depends-on-HSE","name":"depends-on-HSE","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-26T18:31:47Z","updated_at":"2015-08-03T18:07:01Z","closed_at":null,"body":"Not 100% sure if this is in `hlint` or upstream.\r\nI've installed `hlint` v1.9.21 with `haskell-src-exts` v1.16.0.1, which [appears to support the `javascript` calling convention](http://hackage.haskell.org/package/haskell-src-exts-1.16.0.1/docs/Language-Haskell-Exts-Syntax.html#t:CallConv). When I run it on my GHCJS project that uses such an import, I get:\r\n\r\n```\r\n$ hlint src/\r\nsrc/Main.hs:40:16: Warning: Parse error: javascript\r\nFound:\r\n      deriving (Eq, Ord, Show)\r\n\r\n  > foreign import javascript unsafe\r\n      \"document.getElementById($1)\"\r\n      js_getElementById :: JSString -> IO (JSRef a)\r\n```\r\n\r\nTrying to turn on the appropriate extension doesn't work:\r\n\r\n```\r\n$ hlint --language=JavaScriptFFI src/\r\nhlint: Unknown extension: JavaScriptFFI\r\n```"},"comment":{"url":"https://api.github.com/repos/ndmitchell/hlint/issues/comments/127355118","html_url":"https://github.com/ndmitchell/hlint/issues/142#issuecomment-127355118","issue_url":"https://api.github.com/repos/ndmitchell/hlint/issues/142","id":127355118,"user":{"login":"ndmitchell","id":1651197,"avatar_url":"https://avatars.githubusercontent.com/u/1651197?v=3","gravatar_id":"","url":"https://api.github.com/users/ndmitchell","html_url":"https://github.com/ndmitchell","followers_url":"https://api.github.com/users/ndmitchell/followers","following_url":"https://api.github.com/users/ndmitchell/following{/other_user}","gists_url":"https://api.github.com/users/ndmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/ndmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndmitchell/subscriptions","organizations_url":"https://api.github.com/users/ndmitchell/orgs","repos_url":"https://api.github.com/users/ndmitchell/repos","events_url":"https://api.github.com/users/ndmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/ndmitchell/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T18:07:01Z","updated_at":"2015-08-03T18:07:01Z","body":"See https://github.com/haskell-suite/haskell-src-exts/pull/236"}}