[Haskell-cafe] syb-with-class problem.
Magicloud Magiclouds
magicloud.magiclouds at gmail.com
Fri Dec 17 00:21:18 CET 2010
On Thu, Dec 16, 2010 at 9:15 PM, Antoine Latter <aslatter at gmail.com> wrote:
> Hi there,
>
> The only version of template haskell which will work is the version
> that the compiler was built against. So if you're working with ghc-7,
> it is 2.5 or nothing.
>
> Why doesn't HStringTemplate work with 2.5.0.0? What error were you getting?
>
> Antoine
>
> On Thu, Dec 16, 2010 at 6:23 AM, Magicloud Magiclouds
> <magicloud.magiclouds at gmail.com> wrote:
>> Hi,
>> I am trying to make happstack work in my box, which is using ghc 7.
>> While compiling HStringTemplate, which I did a little modification
>> to make it work, I found that it does not work with
>> template-haskell-2.5.0.0. I changed it to use
>> template-haskell-2.4.0.1. This step worked fine.
>> Then I got another error:
>> $ cabal install
>> Resolving dependencies...
>> Configuring syb-with-class-0.6.1.1...
>> Preprocessing library syb-with-class-0.6.1.1...
>> Building syb-with-class-0.6.1.1...
>> [1 of 4] Compiling Data.Generics.SYB.WithClass.Context (
>> Data/Generics/SYB/WithClass/Context.hs,
>> dist/build/Data/Generics/SYB/WithClass/Context.o )
>> [2 of 4] Compiling Data.Generics.SYB.WithClass.Basics (
>> Data/Generics/SYB/WithClass/Basics.hs,
>> dist/build/Data/Generics/SYB/WithClass/Basics.o )
>> [3 of 4] Compiling Data.Generics.SYB.WithClass.Derive (
>> Data/Generics/SYB/WithClass/Derive.hs,
>> dist/build/Data/Generics/SYB/WithClass/Derive.o )
>>
>> Data/Generics/SYB/WithClass/Derive.hs:23:1:
>> Bad interface file:
>> /home/magicloud/.cabal/lib/template-haskell-2.4.0.1/ghc-7.0.1/Language/Haskell/TH.hi
>> Something is amiss; requested module
>> template-haskell-2.4.0.1:Language.Haskell.TH differs from name found
>> in the interface file template-haskell:Language.Haskell.TH
>> cabal: Error: some packages failed to install:
>> HStringTemplate-0.6.3 depends on syb-with-class-0.6.1.1 which failed to
>> install.
>> syb-with-class-0.6.1.1 failed during the building phase. The exception was:
>> ExitFailure 1
>>
>> How to resolve this?
>> --
>> 竹密岂妨流水过
>> 山高哪阻野云飞
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>
I see.
The building problem with 2.5.0.0 is
Language.Haskell.TH.Quote.QuasiQuoter. It changed from 2 params
constructor to 4 params. And I have no idea how to give the 2 new
params.
--
竹密岂妨流水过
山高哪阻野云飞
More information about the Haskell-Cafe
mailing list