title: HandsomeSoup: Getting basic example to work
body: <p>I am trying to get the basic example from <a href="http://egonschiele.github.io/HandsomeSoup/" rel="nofollow">http://egonschiele.github.io/HandsomeSoup/</a> to work:</p>
  
  <pre><code>main = do
      doc &lt;- fromUrl "http://www.google.com/search?q=egon+schiele"
      links &lt;- runX $ doc &gt;&gt;&gt; css "h3.r a" ! "href"
      mapM_ putStrLn links
  </code></pre>
  
  <p>I have tried to reproduce the example like so:</p>
  
  <pre><code>module Main (main) where
  import Text.HandsomeSoup
  import Text.XML.HXT.Core
  import Control.Monad
  
  main = do
      doc &lt;- fromUrl "http://www.google.com/search?q=egon+schiele"
      links &lt;- runX $ doc &gt;&gt;&gt; css "h3.r a" ! "href"
      mapM_ putStrLn links        
  </code></pre>
  
  <p>But, I am getting the following error:         </p>
  
  <pre><code>$ runhaskell Main.hs
  
  Main.hs:8:21:
      Couldn't match expected type `IOSLA (XIOState ()) XmlTree b0'
                  with actual type `hxt-9.3.0.1:Data.Tree.NTree.TypeDefs.NTree
                                      hxt-9.3.0.1:Text.XML.HXT.DOM.TypeDefs.XNode'
      In the first argument of `(&gt;&gt;&gt;)', namely `doc'
      In the second argument of `($)', namely
        `doc &gt;&gt;&gt; css "h3.r a" ! "href"'
      In a stmt of a 'do' block:
        links &lt;- runX $ doc &gt;&gt;&gt; css "h3.r a" ! "href"
  </code></pre>
  
  <p>But I really can't seem to figure out what's going on.</p>