{"action":"created","issue":{"url":"https://api.github.com/repos/ndmitchell/hlint/issues/187","labels_url":"https://api.github.com/repos/ndmitchell/hlint/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/ndmitchell/hlint/issues/187/comments","events_url":"https://api.github.com/repos/ndmitchell/hlint/issues/187/events","html_url":"https://github.com/ndmitchell/hlint/issues/187","id":118229782,"number":187,"title":"Record patterns","user":{"login":"asr","id":635804,"avatar_url":"https://avatars.githubusercontent.com/u/635804?v=3","gravatar_id":"","url":"https://api.github.com/users/asr","html_url":"https://github.com/asr","followers_url":"https://api.github.com/users/asr/followers","following_url":"https://api.github.com/users/asr/following{/other_user}","gists_url":"https://api.github.com/users/asr/gists{/gist_id}","starred_url":"https://api.github.com/users/asr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asr/subscriptions","organizations_url":"https://api.github.com/users/asr/orgs","repos_url":"https://api.github.com/users/asr/repos","events_url":"https://api.github.com/users/asr/events{/privacy}","received_events_url":"https://api.github.com/users/asr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-22T00:32:54Z","updated_at":"2015-11-22T09:28:31Z","closed_at":null,"body":"Running hlint on\r\n\r\n```haskell\r\ndata A = A Int Int Int\r\n\r\nfoo :: A -> Bool\r\nfoo (A _ _ _) = True\r\n```\r\n\r\nit suggests\r\n\r\n```bash\r\nWarning: Use record patterns\r\nFound:\r\n  A _ _ _\r\nWhy not:\r\n  A{}\r\n```\r\n\r\nbut running hlint on\r\n\r\n```haskell\r\ndata B = B Int Int\r\n\r\nbar :: B -> Bool\r\nbar (B _ _) = True\r\n```\r\n\r\nthere are not suggestion. Is this behaviour on purpose?\r\n"},"comment":{"url":"https://api.github.com/repos/ndmitchell/hlint/issues/comments/158739489","html_url":"https://github.com/ndmitchell/hlint/issues/187#issuecomment-158739489","issue_url":"https://api.github.com/repos/ndmitchell/hlint/issues/187","id":158739489,"user":{"login":"mpickering","id":1216657,"avatar_url":"https://avatars.githubusercontent.com/u/1216657?v=3","gravatar_id":"","url":"https://api.github.com/users/mpickering","html_url":"https://github.com/mpickering","followers_url":"https://api.github.com/users/mpickering/followers","following_url":"https://api.github.com/users/mpickering/following{/other_user}","gists_url":"https://api.github.com/users/mpickering/gists{/gist_id}","starred_url":"https://api.github.com/users/mpickering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpickering/subscriptions","organizations_url":"https://api.github.com/users/mpickering/orgs","repos_url":"https://api.github.com/users/mpickering/repos","events_url":"https://api.github.com/users/mpickering/events{/privacy}","received_events_url":"https://api.github.com/users/mpickering/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T09:28:31Z","updated_at":"2015-11-22T09:28:31Z","body":"I meant,\r\n\r\n```\r\ndata B = B Int Int Int\r\n\r\nbar :: B -> Bool\r\nbar (B _ _ _) = True\r\n```"}}