{"id":17251078,"url":"https://github.com/fumieval/xml-lens","last_synced_at":"2025-04-14T03:12:28.536Z","repository":{"id":39886217,"uuid":"10762282","full_name":"fumieval/xml-lens","owner":"fumieval","description":"Lenses and traversals for xml-conduit","archived":false,"fork":false,"pushed_at":"2023-01-26T01:45:04.000Z","size":32,"stargazers_count":48,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-25T23:31:19.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fumieval.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-18T12:02:09.000Z","updated_at":"2023-12-19T06:00:25.000Z","dependencies_parsed_at":"2023-02-14T13:15:17.279Z","dependency_job_id":null,"html_url":"https://github.com/fumieval/xml-lens","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumieval%2Fxml-lens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumieval%2Fxml-lens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumieval%2Fxml-lens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumieval%2Fxml-lens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fumieval","download_url":"https://codeload.github.com/fumieval/xml-lens/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813797,"owners_count":21165634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T06:50:17.457Z","updated_at":"2025-04-14T03:12:28.511Z","avatar_url":"https://github.com/fumieval.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"xml-lens\n========\n\nLenses and traversals for [xml-conduit](http://hackage.haskell.org/package/xml-conduit).\n\nExample\n========\n\n```haskell\n\u003e doc \u003c- Text.XML.readFile def \"examples/books.xml\"\n\n\u003e doc ^.. root . named \"books\" ... named \"book\" . attributeIs \"category\" \"Textbooks\" ... named \"title\" . text\n[\"Learn You a Haskell for Great Good!\",\"Programming in Haskell\",\"Real World Haskell\"]\n\n\u003e lengthOf ?? doc $ root . named \"books\" ... named \"book\"\n7\n\n\u003e doc ^? root . named \"books\" ... attributeIs \"category\" \"Joke\" ... named \"title\" . text\nJust \"Functional Ikamusume\"\n\n\u003e doc \u0026 root . named \"books\" ... named \"book\" ... named \"pages\" . text \u003c\u003e~ \" pages\" \u0026 renderLBS def \u0026 BL.putStrLn\n```\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"ISO-8859-1\"?\u003e\n\u003cbooks\u003e\n\u003cbook category=\"Language and library definition\"\u003e\n    \u003ctitle\u003eHaskell 98 language and libraries: the Revised Report\u003c/title\u003e\n    \u003cauthor year=\"2003\"\u003eSimon Peyton Jones\u003c/author\u003e\n    \u003cpages\u003e272 pages\u003c/pages\u003e\n    \u003cprice\u003e£45.00\u003c/price\u003e\n\u003c/book\u003e\n\u003cbook category=\"Textbooks\"\u003e\n    \u003ctitle\u003eLearn You a Haskell for Great Good!\u003c/title\u003e\n    \u003cauthor year=\"2011\"\u003eMiran Lipovaca\u003c/author\u003e\n    \u003cpages\u003e360 pages\u003c/pages\u003e\n\u003c/book\u003e\n\u003cbook category=\"Textbooks\"\u003e\n    \u003ctitle\u003eProgramming in Haskell\u003c/title\u003e\n    \u003cauthor year=\"2007\"\u003eGraham Hutton\u003c/author\u003e\n    \u003cpages\u003e200 pages\u003c/pages\u003e\n\u003c/book\u003e\n…\n```\n\nTips\n----\n\n* Use [cosmos](http://hackage.haskell.org/package/lens-4.19.2/docs/Control-Lens-Plated.html) to traverse over all children\n* You can do or-composition of traversals with [failing](http://hackage.haskell.org/package/lens-4.19.2/docs/Control-Lens-Traversal.html#v:failing)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumieval%2Fxml-lens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffumieval%2Fxml-lens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumieval%2Fxml-lens/lists"}