git.iko.soy/typeable/dom-parser
on master help sign in
Upd: useful
commit413d8d34633a8d37a333e2b08455b206e7bd2886 authorAleksey Uimanov <s9gf4ult@gmail.com> dateThu 22 Dec 2016, 11:57 (10 years ago) parent9636ea0
2 files changed+4−4
CHANGELOG.md+1−1 src/Text/XML/DOM/Parser/Combinators.hs+3−3
CHANGELOG.md+1−1
@@ -3,7 +3,7 @@
33## 1.0.0
44* Added support for parsing attributes
55* Changed public interface for 'parseContent'
6−* Added usefull functions
6+* Added useful functions
77* Dropped unnecessary dependency from shakespeare
88
99## 0.1.0
src/Text/XML/DOM/Parser/Combinators.hs+3−3
@@ -179,7 +179,7 @@ ignoreElem test parser = do
179179 if ign then pure Nothing else Just <$> parser
180180
181181-- | If current element has no children nodes does not run parser and returns
182−-- Nothing. Otherwise runs parser inside current element. Usefull when you got
182+-- Nothing. Otherwise runs parser inside current element. Useful when you got
183183-- XML with strange empty elements which must be just ignored, but `inElem` runs
184184-- parser inside of this elements which causes to parser error.
185185ignoreEmpty
@@ -213,7 +213,7 @@ getCurrentName :: (Monad m) => DomParserT Identity m Text
213213getCurrentName = view $ pdElements . to runIdentity . localName
214214
215215-- | If name of current tag differs from first argument throws 'PENotFound' with
216−-- tag name replaced in last path's segment. Usefull for checking root
216+-- tag name replaced in last path's segment. Useful for checking root
217217-- document's element name.
218218checkCurrentName
219219 :: (Monad m)
@@ -275,7 +275,7 @@ maybeReadContent f t = maybe (Left msg) Right $ f t
275275 msg = "Not readable " <> n <> ": " <> t
276276 n = T.pack $ show $ typeRep (Proxy :: Proxy a)
277277
278−-- | Tries to read given text to value using 'Read'. Usefull to use
278+-- | Tries to read given text to value using 'Read'. Useful to use
279279-- with 'parseContent' and 'parseAttribute'
280280readContent
281281 :: (Read a, Typeable a)