{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/2263","repository_url":"https://api.github.com/repos/purescript/purescript","labels_url":"https://api.github.com/repos/purescript/purescript/issues/2263/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/2263/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/2263/events","html_url":"https://github.com/purescript/purescript/pull/2263","id":169595148,"number":2263,"title":"export desugarDecl from Sugar.ObjectWildcards","user":{"login":"rvion","id":2150990,"avatar_url":"https://avatars.githubusercontent.com/u/2150990?v=3","gravatar_id":"","url":"https://api.github.com/users/rvion","html_url":"https://github.com/rvion","followers_url":"https://api.github.com/users/rvion/followers","following_url":"https://api.github.com/users/rvion/following{/other_user}","gists_url":"https://api.github.com/users/rvion/gists{/gist_id}","starred_url":"https://api.github.com/users/rvion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvion/subscriptions","organizations_url":"https://api.github.com/users/rvion/orgs","repos_url":"https://api.github.com/users/rvion/repos","events_url":"https://api.github.com/users/rvion/events{/privacy}","received_events_url":"https://api.github.com/users/rvion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-05T12:21:08Z","updated_at":"2016-08-06T08:39:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/purescript/purescript/pulls/2263","html_url":"https://github.com/purescript/purescript/pull/2263","diff_url":"https://github.com/purescript/purescript/pull/2263.diff","patch_url":"https://github.com/purescript/purescript/pull/2263.patch"},"body":"Should we make desugarDecl visible ?\r\n\r\nWithout desugarDecl available, it’s much harder to write\r\ndesugaring-related tests without building whole modules.\r\n\r\ncontext: \r\n\r\nAs I was discovering the codebase, I wanted to write this\r\n\r\n```purescript\r\nlex \"\" \"_.ok.bar\" >>= runTokenParser \"\" parseValue\r\nlet decl = ValueDeclaration (Ident \"test\") Public [NullBinder] (Right (Accessor \"bar\" (Accessor \"ok\" AnonymousArgument)))\r\nrunMake defaultOptions $ evalSupplyT 1 $ desugarDecl decl\r\n```\r\n\r\nto quickly see this:\r\n\r\n```purescript\r\nAccessor \"bar\" (Abs (Left (GenIdent Nothing 1)) (Accessor \"ok\" (Var (Qualified Nothing (GenIdent Nothing 1))))\r\n```\r\n\r\nwithout having to build a whole module.\r\n\r\n-------------\r\n\r\nI plan to make an other PR soon on top of this one, so I'm opening this right now in case you don't want to add this export.\r\nI understand it's a bit unfortunate to have to export it, but I did not find any other way to quickly browse ast."},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/238013060","html_url":"https://github.com/purescript/purescript/pull/2263#issuecomment-238013060","issue_url":"https://api.github.com/repos/purescript/purescript/issues/2263","id":238013060,"user":{"login":"rvion","id":2150990,"avatar_url":"https://avatars.githubusercontent.com/u/2150990?v=3","gravatar_id":"","url":"https://api.github.com/users/rvion","html_url":"https://github.com/rvion","followers_url":"https://api.github.com/users/rvion/followers","following_url":"https://api.github.com/users/rvion/following{/other_user}","gists_url":"https://api.github.com/users/rvion/gists{/gist_id}","starred_url":"https://api.github.com/users/rvion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvion/subscriptions","organizations_url":"https://api.github.com/users/rvion/orgs","repos_url":"https://api.github.com/users/rvion/repos","events_url":"https://api.github.com/users/rvion/events{/privacy}","received_events_url":"https://api.github.com/users/rvion/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T08:39:39Z","updated_at":"2016-08-06T08:39:39Z","body":"I forced push to clean the diff and fix the build with ghc8, but travis seems to have timedout in one of the targets\r\n![image](https://cloud.githubusercontent.com/assets/2150990/17455742/0e0fbb94-5bc2-11e6-853b-1e5809e05340.png)\r\n"}}
{"actor":{"display_login":"rvion"}}