[Haskell-cafe] Failing to install hxt

Daniel Fischer daniel.is.fischer at web.de
Sat Jan 23 18:59:51 EST 2010


Am Sonntag 24 Januar 2010 00:38:44 schrieb haskell at kudling.de:
> Don Stewart <dons at galois.com> hat am 24. Januar 2010 um 00:10 
geschrieben:
> > haskell:
> > > > Looks like the author of hxt has decided to support 6.12 only, at
> > > > the moment.
> > > >
> > > >     base (>=4.2 && <5)
> > > >
> > > > Ensures this will only work on the 6.12 series of compilers.
> > >
> > > Thanks. I know.
> > >
> > > My point is, i don't understand why hxt-8.3.2 (base >= 4 && <5)
> > > fails to install for me with:
> > >
> > > "
> > > src/Text/XML/HXT/Parser/TagSoup.hs:292:8:
> > >     Not in scope: `optLookupEntity'
> > > cabal: Error: some packages failed to install:
> > > hxt-8.3.2 failed during the building phase. The exception was:
> > > exit: ExitFailure 1
> > > "
> >
> > That looks like an error relating to the versoin of tagsoup used?
>
> You're right, thanks.
> "optLookupEntity" is defined in tagsoup-0.6, but not in tagsoup-0.8.
> But hxt-8.3.2 broadly requires tagsoup
> [http://hackage.haskell.org/package/tagsoup-0.8]  (>=0.6 && <1).
>
>
> I am no cabal expert. What is the best solution here?

cabal unpack hxt-8.3.2

open hxt.cabal in kate, change the range of the required tagsoup to 
(>= 0.6 && < 0.7)

cd hxt-8.3.2
cabal install

perhaps not the _best_ solution, but quick and it usually works



More information about the Haskell-Cafe mailing list