egonSchiele / HandsomeSoup

Easy HTML parsing for Haskell
http://egonschiele.github.com/HandsomeSoup
BSD 3-Clause "New" or "Revised" License
124 stars 20 forks source link

Bug in linked html parsing doc #10

Closed tdimiduk closed 11 years ago

tdimiduk commented 11 years ago

The html parsing doc you link to: http://adit.io/posts/2012-04-14-working_with_HTML_in_haskell.html specifies:

import HandsomeSoup

at least on my haskell (ghc 7.6.2) with a cabal install of HandsomeSoup 0.3.1, HandsomeSoup needs to be imported as:

import Text.HandsomeSoup
tdimiduk commented 11 years ago

To follow along in ghci, the line:

doc = readString [withParseHTML yes, withWarnings no] html

also needs to be

let doc = readString [withParseHTML yes, withWarnings no] html
egonSchiele commented 11 years ago

Fixed, thanks!