{"action":"opened","issue":{"url":"https://api.github.com/repos/jeffreyrosenbluth/static-canvas/issues/2","labels_url":"https://api.github.com/repos/jeffreyrosenbluth/static-canvas/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jeffreyrosenbluth/static-canvas/issues/2/comments","events_url":"https://api.github.com/repos/jeffreyrosenbluth/static-canvas/issues/2/events","html_url":"https://github.com/jeffreyrosenbluth/static-canvas/issues/2","id":57583735,"number":2,"title":"Can only have one canvas per page?","user":{"login":"gibiansky","id":1865411,"avatar_url":"https://avatars.githubusercontent.com/u/1865411?v=3","gravatar_id":"","url":"https://api.github.com/users/gibiansky","html_url":"https://github.com/gibiansky","followers_url":"https://api.github.com/users/gibiansky/followers","following_url":"https://api.github.com/users/gibiansky/following{/other_user}","gists_url":"https://api.github.com/users/gibiansky/gists{/gist_id}","starred_url":"https://api.github.com/users/gibiansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gibiansky/subscriptions","organizations_url":"https://api.github.com/users/gibiansky/orgs","repos_url":"https://api.github.com/users/gibiansky/repos","events_url":"https://api.github.com/users/gibiansky/events{/privacy}","received_events_url":"https://api.github.com/users/gibiansky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-13T10:39:06Z","updated_at":"2015-02-13T10:39:06Z","closed_at":null,"body":"Hey,\r\n\r\nI tried making an IHaskellDisplay instance for static-canvas (see [here](http://www.reddit.com/r/haskell/comments/2vr60u/building_an_ihaskell_display_for_staticcanvas/)) but found that if I had two canvases rendered using `buildScript` in the same HTML page, then the first one would just be modified by the commands in the second one.\r\n\r\nThis seems like a bug? Sadly `static-canvas` (which is awesome!) is not really useable with IHaskell until that's fixed...\r\n\r\nPerhaps add a `buildCanvasUniq` function that works by storing a global counter in IO (with just an unsafe global MVar) that increments the counter every time it makes a new canvas. This is a bit ugly but works. Or allow `buildScript` to take a name, and offload that unsafe ugliness to IHaskell and other users :)"}}