Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
openUrl :: String -> MaybeT IO String Source
Helper function for getting page content. Example:
contents <- runMaybeT $ openUrl "http://foo.com"
fromUrl :: String -> IOSArrow b (NTree XNode) Source
Given a url, returns a document. Example:
doc = fromUrl "http://foo.com" doc = fromUrl "tests/test.html"
parseHtml :: String -> IOSArrow b (NTree XNode) Source
Given a string, parses it and returns a document. Example:
doc = parseHtml "<h1>hello!</h1>"