An educated guess would be that HandsomeSoup
you have installed was built with a different version of hxt
than the most recent one present in your system, and so when you try to use both libraries at the same time you end up with two colliding versions of hxt
. Even though cabal tries to prevent such situations, flags such as --force-reinstalls
can lead to this sort of trouble. In any case, if my guess is correct unregistering HandsomeSoup
(ghc-pkg unregister HandsomeSoup
) and then reinstalling it should fix the problem.
Getting HandsomeSoup Example to Work
-
04-07-2023 - |
Question
I've copied the handsomesoup basic example verbatim, but I'm getting a weird type error. The types are the same, except that some have hxt-9.3.1.3... prepended to some. Does anyone know how to fix that? Thanks!
Couldn't match type `hxt-9.3.1.3:Control.Arrow.IOStateListArrow.IOSLA
(hxt-9.3.1.3:Text.XML.HXT.Arrow.XmlState.TypeDefs.XIOState ())'
with `IOSLA (XIOState ())'
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow