gdritter repos xleb / 2ca984a
Remove some extraneous slashes in the README Getty Ritter 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Collapse all Expand all
1414 b <- X.children (X.byTag "b") parseB
1515 ~~~~
1616
17 Leaf data tends to come in two forms in XML: attribute values (like `\<tag attr="value"\>`) or tag content (like `\<tag\>value\<\/tag\>`). In both cases, the `Xleb` functions allow you to parse that content however you'd like by providing an arbitrary function of type `String -> Either String a`. The `xleb` library provides several built-in functions of this type for common situations.
17 Leaf data tends to come in two forms in XML: attribute values (like `<tag attr="value">`) or tag content (like `<tag>value</tag>`). In both cases, the `Xleb` functions allow you to parse that content however you'd like by providing an arbitrary function of type `String -> Either String a`. The `xleb` library provides several built-in functions of this type for common situations.
1818
1919 ~~~~.haskell
2020 c <- X.attr "index" X.number