Thanks Michael. It is because of tagsoup version.
After I installed latest tagsoup, I have to "cabal clean && cabal configure && cabal build".
However another error came to me after I re-compile authenticate to version 0.9.1.8 successfully.
simonwu@ubuntu:~/haskell/authenticate$ cabal install yesod-0.8.2.1 --reinstall
Resolving dependencies...
cabal: dependencies conflict: authenticate-0.9.1.8 requires bytestring
==0.9.1.7 however
bytestring-0.9.1.7 was excluded because authenticate-0.9.1.8 requires
bytestring ==0.9.1.10
I have both bytestring-0.9.1.7 and bytestring-0.9.1.10 installed.
The error turns out to be really wired to me and I have no idea how to fix it yet.
Also I tried "bottom-up" re-build yesod.
recompile yesod-auth, yesod-form then recompile but this way is really a nightmare.
The dependencies dried me crazy thus I gave up.
Appreciate your help!
-Haisheng
Looks like you have an old version of tagsoup. Can you try running
"cabal install tagsoup && cabal install authenticate"? If that solves
the problem, I fix the authenticate cabal file to require a newer
tagsoup.
> _______________________________________________
On Sat, Jul 23, 2011 at 5:44 AM, Haisheng Wu <freizl@gmail.com> wrote:
> Hello,
> Sorry if I supposed to post question to Google group which is not
> available at my current region unfortunately.
> My question comes I failed to compile package authenticate-0.9.1.7 with
> error below.
> Do you have any ideas about fixing it?
> Please let me if you need further environment information.
> Thanks!
> simonwu@ubuntu:~/haskell/authenticate$ cabal build
> Preprocessing library authenticate-0.9.1.7...
> Building authenticate-0.9.1.7...
> [ 8 of 10] Compiling OpenId2.Discovery ( OpenId2/Discovery.hs,
> dist/build/OpenId2/Discovery.o )
> OpenId2/Discovery.hs:137:18:
> No instance for (Text.StringLike.StringLike Text)
> arising from a use of `parseTags' at OpenId2/Discovery.hs:137:18-26
> Possible fix:
> add an instance declaration for (Text.StringLike.StringLike Text)
> In the second argument of `(.)', namely `parseTags'
> In the second argument of `(.)', namely
> `mapMaybe linkTag . parseTags'
> In the second argument of `(.)', namely
> `filter isOpenId . mapMaybe linkTag . parseTags'
> simonwu@ubuntu:~/haskell/authenticate$ ghci --version
> The Glorious Glasgow Haskell Compilation System, version 6.12.3
> -Haisheng
> web-devel mailing list
> web-devel@haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>
>