<div dir="ltr">Here is the source by the way:<br>{-# LANGUAGE OverloadedStrings #-}<br><br>import Network.HTTP.Conduit (simpleHttp)<br>import qualified Data.Text as T<br>import Text.HTML.DOM (parseLBS)<br>import Text.XML.Cursor (Cursor, attributeIs, content, element, fromDocument, child,<br>                        ($//), (&|), (&//), (>=>))<br><br>-- The URL we're going to search<br>url = "http://www.bing.com/search?q=school+of+haskell"<br><br>-- The data we're going to search for<br>findNodes :: Cursor -> [Cursor]<br>findNodes = element "span" >=> attributeIs "id" "count" >=> child<br><br>-- Extract the data from each node in turn<br>extractData = T.concat . content<br><br>-- Process the list of data elements<br>processData =  putStrLn . T.unpack . T.concat<br><br>cursorFor :: String -> IO Cursor<br>cursorFor u = do<br>     page <- simpleHttp u<br>     return $ fromDocument $ parseLBS page<br><br>-- test<br>main = do<br>     cursor <- cursorFor url<br>     processData $ cursor $// findNodes &| extractData<br><br><br>On Tuesday, January 21, 2014 2:10:19 PM UTC-8, Stuart Mills wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">I copied and pasted some html parsing demo source from FP School.<br><br>While the code works on the FP demo site (in the IDE), I get the following error on my Windows 7 64 bit:<br><br>InternalIOException getAddrInfo: does not exist (error 10093).<br><br>Thanks<br><br><br></div></blockquote></div>