[Haskell-cafe] Can HXT and Parsec 3 be used in the same library?

John Millikin jmillikin at gmail.com
Sun Oct 4 13:32:18 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm writing a library that needs to parse both plain text (with Parsec)
and XML (with HXT). HXT's .cabal file specifies that it only works with
parsec (>= 2.1 && < 3), but it still builds when I depend on parsec >=
3. It's only during "cabal install" that the following error is displayed:

- --------------------------------------------
Resolving dependencies...
cabal-1.7.3: cannot configure hxt-8.3.1. It requires parsec >=2.1 && <3
For the dependency on parsec >=2.1 && <3 there are these packages:
parsec-2.1.0.0 and parsec-2.1.0.1. However none of them are available.
parsec-2.1.0.0 was excluded because dbus-core-0.5 requires parsec >=3.0.0
parsec-2.1.0.1 was excluded because dbus-core-0.5 requires parsec >=3.0.0
- --------------------------------------------

Is there a good solution to this? I was thinking about changing my
library to use Parsec 2, but that just pushes the problem to my users,
it doesn't really solve it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrI3BgACgkQIkiy1+fm1TrmJACghhgKDBJNIIa9OVhrZ6zrSii+
HEYAnjqfi0KiIQSNrhGCi6eN1DQoHHs+
=aODO
-----END PGP SIGNATURE-----


More information about the Haskell-Cafe mailing list