[Haskell-cafe] ANN: HDBC v2.0 now available
jgoerzen at complete.org
Fri Jan 30 19:29:52 EST 2009
On Fri, Jan 30, 2009 at 03:50:30PM -0800, Michael Snoyman wrote:
> >> [3 of 7] Compiling Database.HDBC.Statement ( Database/HDBC/Statement.hs,
> >> dist/build/Database/HDBC/Statement.o )
> >> Database/HDBC/Statement.hs:113:9:
> >> Type constructor `Exception' used as a class
> >> In the instance declaration for `Exception SqlError'
> >> cabal: Error: some packages failed to install:
> >> HDBC-2.0.0 failed during the building phase. The exception was:
> >> exit: ExitFailure 1
It's as if you have the old base from GHC 6.8. Is cabal-install doing
something (weird|evil|smart) here?
That code is in this block:
#if __GLASGOW_HASKELL__ >= 610
instance Exception SqlError where
And it acts as if you're compiling against GHC 6.8!
> I got that error when using cabal to install. However, when I downloaded the
> package and installed it with a ./Setup.lhs configure..., it worked. Maybe
> this is a cabal issue instead.
Leads me to think even more that there's cabal-install trickery here.
Can someone enlighten us on that? Is cabal-install playing tricks
More information about the Haskell-Cafe