HXT getting first element: refactor weird arrow
问题 I need to get text contents of first <p> which is children of <div class="about"> , wrote the following code: tagTextS :: IOSArrow XmlTree String tagTextS = getChildren >>> getText >>> arr stripString parseDescription :: IOSArrow XmlTree String parseDescription = ( deep (isElem >>> hasName "div" >>> hasAttrValue "id" (== "company_about_full_description")) >>> (arr (\x -> x) /> isElem >>> hasName "p") >. (!! 0) >>> tagTextS ) `orElse` (constA "") Look at this arr (\x -> x) – without it I wasn