haquery
haquery copied to clipboard
jQuery for Haskell
plus a workflow for tests.
* Changed the signature of `parseHtml` and `match'` functions to return `Either String` monad by replacing the calls to `error` with `Left`. * Updated README and tests
I'd propose to give a following example of using Haquery in ghci, which is one of the common usages of fetching a website and parsing it. ``` haskell import Haquery...
Example on http://howoldis.herokuapp.com/ In Jquery: ``` $('a:first-child') nixos-13.10 ``` in Haquery: ``` > Prelude.concatMap (select (Data.Text.pack "a:first-child")) html [ Name , Last modified , Size .... ```