Unfortunately, it really does require 6.12. The issue is that we need to automatically generate a type instance for "Routes". While 6.10 supports type instances, it doesn't include that support in the template haskell.

If people are interested, I think it would be possible to make the Routes type instance dependent upon the template-haskell version number, and then users would need to declare it themselves.

By the way, I actually just released web-routes-quasi 0.3.0.

Michael

On Sun, May 23, 2010 at 12:44 AM, Arie Peterson <ariep@xs4all.nl> wrote:
On Sat, 22 May 2010 20:42:51 +0300, Michael Snoyman <michael@snoyman.com>
wrote:
> [...]
>
> Note: right now it depends on web-routes-quasi 0.3.0, which has not yet
> been
> released, so you'll have to pull that from the github repo.

In order to test my proposed solution (see below), I tried building
web-routes-quasi 0.3.0 from git, but I get another cabal version conflict
failure:

| Resolving dependencies...
| cabal: cannot configure template-haskell-2.4.0.1. It requires base >=4.2
&& <5
| For the dependency on base >=4.2 && <5 there are these packages:
base-4.2.0.0
| and base-4.2.0.1. However none of them are available.
| base-4.2.0.0 was excluded because of the top level dependency base -any
| base-4.2.0.1 was excluded because of the top level dependency base -any

I assume this means that it needs ghc 6.12 (which I haven't installed
yet). Do you really need template-haskell-2.4.*, or would 2.3.* suffice as
well? In that case you could relax the version constraint.

> On Sat, May 22, 2010 at 7:32 AM, James Britt <james@neurogami.com>
wrote:
>
>> james@james06:~/data/vendor/yesod$ runhaskell Setup.lhs configure
--user
>> Configuring yesod-0.2.0...
>> Warning: This package indirectly depends on multiple versions of the
same
>> package. This is highly likely to cause a compile failure.
>> package http-wget-0.6.2 requires transformers-0.1.4.0
>> package control-monad-attempt-0.3.0 requires transformers-0.1.4.0
>> package authenticate-0.6.2 requires transformers-0.1.4.0
>> package yesod-0.2.0 requires transformers-0.2.1.0
>> package MonadCatchIO-transformers-0.2.2.0 requires transformers-0.2.1.0
>>
>> [...]
>>
>> Suggestions?

>From a quick look at the source of yesod, it /seems/ that it may work with
MonadCatchIO-transformers-0.1.* as well. Is there any reason yesod asks for
>=0.2.2 ? If not, relaxing this version constraint might fix things.


Regards,

Arie

_______________________________________________
web-devel mailing list
web-devel@haskell.org
http://www.haskell.org/mailman/listinfo/web-devel