git.iko.soy/typeable/xml-lens
on master help sign in
Update README.md
commit908dc6187cbafd10aaa3a21bbdf247f9f63d5c04 authorFumiaki Kinoshita <fumiexcel@gmail.com> dateTue 18 Jun 2013, 21:30 (13 years ago) parent5db6a62
1 file changed+5−6
README.md+5−6
README.md+5−6
@@ -6,11 +6,10 @@ Lenses and traversals for [xml-conduit](http://hackage.haskell.org/package/xml-c
66Example
77========
88
9−> doc <- Text.XML.readFile def "examples\\books.xml"
9+ > doc <- Text.XML.readFile def "examples\\books.xml"
1010
11−> doc ^.. root . el "books" ./ el "book" ./ el "title" . text
12−["Haskell 98 language and libraries: the Revised Report","Learn You a Haskell for Great Good!","Programming in Haskell","Real World Haskell","The Fun of Program
13−ming","Types and Programming Languages","Functional Ikamusume"]
11+ > doc ^.. root . el "books" ./ el "book" ./ el "title" . text
12+ ["Haskell 98 language and libraries: the Revised Report","Learn You a Haskell for Great Good!","Programming in Haskell","Real World Haskell","The Fun of Programming","Types and Programming Languages","Functional Ikamusume"]
1413
15−> doc ^.. root . el "books" ./ el "book" . attributeIs "category" "Textbooks" ./ el "title" . text
16−["Learn You a Haskell for Great Good!","Programming in Haskell","Real World Haskell"]
14+ > doc ^.. root . el "books" ./ el "book" . attributeIs "category" "Textbooks" ./ el "title" . text
15+ ["Learn You a Haskell for Great Good!","Programming in Haskell","Real World Haskell"]