{"action":"created","issue":{"url":"https://api.github.com/repos/lpw25/doc-ock-xml/issues/11","labels_url":"https://api.github.com/repos/lpw25/doc-ock-xml/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/lpw25/doc-ock-xml/issues/11/comments","events_url":"https://api.github.com/repos/lpw25/doc-ock-xml/issues/11/events","html_url":"https://github.com/lpw25/doc-ock-xml/pull/11","id":57522937,"number":11,"title":"Functional XML serialization","user":{"login":"dsheets","id":59918,"avatar_url":"https://avatars.githubusercontent.com/u/59918?v=3","gravatar_id":"","url":"https://api.github.com/users/dsheets","html_url":"https://github.com/dsheets","followers_url":"https://api.github.com/users/dsheets/followers","following_url":"https://api.github.com/users/dsheets/following{/other_user}","gists_url":"https://api.github.com/users/dsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/dsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsheets/subscriptions","organizations_url":"https://api.github.com/users/dsheets/orgs","repos_url":"https://api.github.com/users/dsheets/repos","events_url":"https://api.github.com/users/dsheets/events{/privacy}","received_events_url":"https://api.github.com/users/dsheets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-12T21:34:11Z","updated_at":"2015-02-13T16:13:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lpw25/doc-ock-xml/pulls/11","html_url":"https://github.com/lpw25/doc-ock-xml/pull/11","diff_url":"https://github.com/lpw25/doc-ock-xml/pull/11.diff","patch_url":"https://github.com/lpw25/doc-ock-xml/pull/11.patch"},"body":"`DocOckXmlPrint` no longer requires use of `Xmlm.output` or has side effects; it has been renamed `DocOckXmlFold`."},"comment":{"url":"https://api.github.com/repos/lpw25/doc-ock-xml/issues/comments/74278647","html_url":"https://github.com/lpw25/doc-ock-xml/pull/11#issuecomment-74278647","issue_url":"https://api.github.com/repos/lpw25/doc-ock-xml/issues/11","id":74278647,"user":{"login":"lpw25","id":2631210,"avatar_url":"https://avatars.githubusercontent.com/u/2631210?v=3","gravatar_id":"","url":"https://api.github.com/users/lpw25","html_url":"https://github.com/lpw25","followers_url":"https://api.github.com/users/lpw25/followers","following_url":"https://api.github.com/users/lpw25/following{/other_user}","gists_url":"https://api.github.com/users/lpw25/gists{/gist_id}","starred_url":"https://api.github.com/users/lpw25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpw25/subscriptions","organizations_url":"https://api.github.com/users/lpw25/orgs","repos_url":"https://api.github.com/users/lpw25/repos","events_url":"https://api.github.com/users/lpw25/events{/privacy}","received_events_url":"https://api.github.com/users/lpw25/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T16:13:30Z","updated_at":"2015-02-13T16:13:30Z","body":"If the fold is not polymorphic then the accumulator type for the outputs of `file` and `unit` are forced to be equal to the accumulator of the inputs. This makes it difficult to implement a robust `unfold` because you want to only pass part of the stream to the `root` fold -- the part between two `base` tags -- without giving it access to the rest of the stream.\r\n\r\nI also *want* the slight awkwardness of record syntax, to encourage people to call `DocOckXmlUnfold.file` once to create a record, and then reuse that record for all their unfolding needs. This is because is there is a noticeable cost to setting up the parser, and I would like people not to re-setup the parser for every file they parse."}}