{"action":"closed","issue":{"url":"https://api.github.com/repos/mainland/language-c-quote/issues/55","labels_url":"https://api.github.com/repos/mainland/language-c-quote/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/mainland/language-c-quote/issues/55/comments","events_url":"https://api.github.com/repos/mainland/language-c-quote/issues/55/events","html_url":"https://github.com/mainland/language-c-quote/issues/55","id":110792396,"number":55,"title":"[BUG] Comments at the top of a function definition break","user":{"login":"oleks","id":166050,"avatar_url":"https://avatars.githubusercontent.com/u/166050?v=3","gravatar_id":"","url":"https://api.github.com/users/oleks","html_url":"https://github.com/oleks","followers_url":"https://api.github.com/users/oleks/followers","following_url":"https://api.github.com/users/oleks/following{/other_user}","gists_url":"https://api.github.com/users/oleks/gists{/gist_id}","starred_url":"https://api.github.com/users/oleks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleks/subscriptions","organizations_url":"https://api.github.com/users/oleks/orgs","repos_url":"https://api.github.com/users/oleks/repos","events_url":"https://api.github.com/users/oleks/events{/privacy}","received_events_url":"https://api.github.com/users/oleks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-10T12:33:26Z","updated_at":"2015-10-14T00:41:38Z","closed_at":"2015-10-14T00:41:38Z","body":"Here's a simple module illustrating the trouble.\r\n````\r\n{-# LANGUAGE QuasiQuotes #-}\r\n\r\nmodule Test where\r\n\r\nimport qualified Language.C.Syntax as CS\r\nimport qualified Language.C.Quote.C as CQ\r\n\r\ntest :: [CS.Definition]\r\ntest = [CQ.cunit|\r\n  int f() {\r\n    // Breaking comment..\r\n    int x;\r\n  }\r\n  |]\r\n````\r\nHere's my GHC version and attempt at compiling this module.\r\n````\r\n$ ghc --version\r\nThe Glorious Glasgow Haskell Compilation System, version 7.10.2\r\n$ ghc Test.hs \r\n[1 of 1] Compiling Test             ( Test.hs, Test.o )\r\n\r\nTest.hs:9:18: Test.hs:12:5:\r\n    parse error on `int'\r\n````\r\nPutting variable declaration *before* the comment seems to work as intended."}}