[Haskell-cafe] TagSoup 0.9

Neil Mitchell ndmitchell at gmail.com
Wed May 19 15:18:53 EDT 2010


Hi Ralph,

> I was using TagSoup 0.8 with great success. On upgrading to 0.9 I have this error:
>
> TQ\TagSoup\TagSoupExtensions.lhs:29:17:
>    `Tag' is not applied to enough type arguments
>    Expected kind `*', but `Tag' has kind `* -> *'
>    In the type synonym declaration for `Bundle'
> Failed, modules loaded: TQ.Common.TextAndListHandling.

My change notes have this being a change between 0.6 and 0.8. As
Malcolm says, any old uses of "Tag" should become "Tag String". The
reason is that Tag is now parameterised, and you can use Tag
ByteString etc. However, I should point out that Tag ByteString won't
be any faster than Tag String in this version (it's in the future work
pile).

>> > Forgot to add: I now need to understand the following warnings on this
>> > line "> import Text.HTML.Download":

Everyone's comments have been right. I previously included
Text.HTML.Download so that it was easy to test tagsoup against the
web. Since I first wrote that snippet the HTTP downloading libraries
have improved substantially, so people should use those in favour of
the version in tagsoup - you'll be able to connect to more websites in
more reliable ways, go through proxies etc. I don't intend to remove
the Download module any time soon, but I will do eventually.

Thanks, Neil


More information about the Haskell-Cafe mailing list