@@ -179,7 +179,7 @@ ignoreElem test parser = do
179 if ign then pure Nothing else Just <$> parser
179 if ign then pure Nothing else Just <$> parser
181-- | If current element has no children nodes does not run parser and returns
181-- | 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
183-- XML with strange empty elements which must be just ignored, but `inElem` runs
183-- XML with strange empty elements which must be just ignored, but `inElem` runs
184-- parser inside of this elements which causes to parser error.
184-- parser inside of this elements which causes to parser error.
185ignoreEmpty
185ignoreEmpty
@@ -213,7 +213,7 @@ getCurrentName :: (Monad m) => DomParserT Identity m Text
213getCurrentName = view $ pdElements . to runIdentity . localName
213getCurrentName = view $ pdElements . to runIdentity . localName
215-- | If name of current tag differs from first argument throws 'PENotFound' with
215-- | 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
217-- document's element name.
217-- document's element name.
218checkCurrentName
218checkCurrentName
219 :: (Monad m)
219 :: (Monad m)
@@ -275,7 +275,7 @@ maybeReadContent f t = maybe (Left msg) Right $ f t
275 msg = "Not readable " <> n <> ": " <> t
275 msg = "Not readable " <> n <> ": " <> t
276 n = T.pack $ show $ typeRep (Proxy :: Proxy a)
276 n = T.pack $ show $ typeRep (Proxy :: Proxy a)
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
279-- with 'parseContent' and 'parseAttribute'
279-- with 'parseContent' and 'parseAttribute'
280readContent
280readContent
281 :: (Read a, Typeable a)
281 :: (Read a, Typeable a)