
this is the error message i get: ezekiel-smithburgs-macbook-pro-15% runhaskell Setup.* build Preprocessing library testpack-1.0.0... Building testpack-1.0.0... [1 of 3] Compiling Test.QuickCheck.Instances ( src/Test/QuickCheck/Instances.hs, dist/build/Test/QuickCheck/Instances.o ) [2 of 3] Compiling Test.QuickCheck.Tools ( src/Test/QuickCheck/Tools.hs, dist/build/Test/QuickCheck/Tools.o ) [3 of 3] Compiling Test.HUnit.Tools ( src/Test/HUnit/Tools.hs, dist/build/Test/HUnit/Tools.o ) src/Test/HUnit/Tools.hs:28:36: Class `Control.Exception.Exception' used as a type In the type `Control.Exception.Exception' In the type `Control.Exception.Exception -> IO a -> IO ()' In the type `String -> Control.Exception.Exception -> IO a -> IO ()' what should i do? need this in order to build hdbc 2.0, which i'm hoping solves a problem i was having earlier (memory leak).

This error is due to usage of old base package in version 3.In .cabal file
add dependency on base-4, in form "base >= 4".
All best
Christopher Skrzętnicki
2009/2/1 Ezekiel Smithburg
this is the error message i get:
ezekiel-smithburgs-macbook-pro-15% runhaskell Setup.* build Preprocessing library testpack-1.0.0... Building testpack-1.0.0... [1 of 3] Compiling Test.QuickCheck.Instances ( src/Test/QuickCheck/Instances.hs, dist/build/Test/QuickCheck/Instances.o ) [2 of 3] Compiling Test.QuickCheck.Tools ( src/Test/QuickCheck/Tools.hs, dist/build/Test/QuickCheck/Tools.o ) [3 of 3] Compiling Test.HUnit.Tools ( src/Test/HUnit/Tools.hs, dist/build/Test/HUnit/Tools.o )
src/Test/HUnit/Tools.hs:28:36: Class `Control.Exception.Exception' used as a type In the type `Control.Exception.Exception' In the type `Control.Exception.Exception -> IO a -> IO ()' In the type `String -> Control.Exception.Exception -> IO a -> IO ()'
what should i do? need this in order to build hdbc 2.0, which i'm hoping solves a problem i was having earlier (memory leak).
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

oops, forgot to reply to all. haven't used a mailing list in a while. =P
this did not solve my problem. also, dons suggested using runhaskell
Setup.hs --constraint='base<4', which worked for him apparently. neither
suggestion has changed my error message at all, and I've cleaned and
reconfigured between each attempt. any other ideas?
also, this section of the .cabal may be relevant:
Build-Depends: base,
haskell98, mtl, HUnit,
QuickCheck >= 1.0 && < 2.0
If flag(splitBase)
Build-Depends: base >= 3, containers, random
Else
Build-Depends: base < 3
On Sat, Jan 31, 2009 at 5:21 PM, Krzysztof Skrzętnicki
This error is due to usage of old base package in version 3.In .cabal file add dependency on base-4, in form "base >= 4". All best
Christopher Skrzętnicki
2009/2/1 Ezekiel Smithburg
this is the error message i get:
ezekiel-smithburgs-macbook-pro-15% runhaskell Setup.* build Preprocessing library testpack-1.0.0... Building testpack-1.0.0... [1 of 3] Compiling Test.QuickCheck.Instances ( src/Test/QuickCheck/Instances.hs, dist/build/Test/QuickCheck/Instances.o ) [2 of 3] Compiling Test.QuickCheck.Tools ( src/Test/QuickCheck/Tools.hs, dist/build/Test/QuickCheck/Tools.o ) [3 of 3] Compiling Test.HUnit.Tools ( src/Test/HUnit/Tools.hs, dist/build/Test/HUnit/Tools.o )
src/Test/HUnit/Tools.hs:28:36: Class `Control.Exception.Exception' used as a type In the type `Control.Exception.Exception' In the type `Control.Exception.Exception -> IO a -> IO ()' In the type `String -> Control.Exception.Exception -> IO a -> IO ()'
what should i do? need this in order to build hdbc 2.0, which i'm hoping solves a problem i was having earlier (memory leak).
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

solution to that problem:
deleted the lines from "If flag(splitBase)" on and changed base in
Build-Depends to base >= 4.
now i have a new problem, however:
ezekiel-smithburgs-macbook-pro-15% runhaskell Setup.hs build
Preprocessing library testpack-1.0.0...
Building testpack-1.0.0...
src/Test/HUnit/Tools.hs:23:7:
Could not find module `System.Random':
it is a member of package random-1.0.0.1, which is hidden
random 1.0.0.1 is installed, i've verified that. what does this error mean?
2009/1/31 Ezekiel Smithburg
oops, forgot to reply to all. haven't used a mailing list in a while. =P
this did not solve my problem. also, dons suggested using runhaskell Setup.hs --constraint='base<4', which worked for him apparently. neither suggestion has changed my error message at all, and I've cleaned and reconfigured between each attempt. any other ideas?
also, this section of the .cabal may be relevant:
Build-Depends: base, haskell98, mtl, HUnit, QuickCheck >= 1.0 && < 2.0 If flag(splitBase) Build-Depends: base >= 3, containers, random Else Build-Depends: base < 3
On Sat, Jan 31, 2009 at 5:21 PM, Krzysztof Skrzętnicki
wrote: This error is due to usage of old base package in version 3.In .cabal file add dependency on base-4, in form "base >= 4". All best
Christopher Skrzętnicki
2009/2/1 Ezekiel Smithburg
this is the error message i get:
ezekiel-smithburgs-macbook-pro-15% runhaskell Setup.* build Preprocessing library testpack-1.0.0... Building testpack-1.0.0... [1 of 3] Compiling Test.QuickCheck.Instances ( src/Test/QuickCheck/Instances.hs, dist/build/Test/QuickCheck/Instances.o ) [2 of 3] Compiling Test.QuickCheck.Tools ( src/Test/QuickCheck/Tools.hs, dist/build/Test/QuickCheck/Tools.o ) [3 of 3] Compiling Test.HUnit.Tools ( src/Test/HUnit/Tools.hs, dist/build/Test/HUnit/Tools.o )
src/Test/HUnit/Tools.hs:28:36: Class `Control.Exception.Exception' used as a type In the type `Control.Exception.Exception' In the type `Control.Exception.Exception -> IO a -> IO ()' In the type `String -> Control.Exception.Exception -> IO a -> IO ()'
what should i do? need this in order to build hdbc 2.0, which i'm hoping solves a problem i was having earlier (memory leak).
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

2009/2/1 Ezekiel Smithburg
solution to that problem:
deleted the lines from "If flag(splitBase)" on and changed base in Build-Depends to base >= 4.
Well, this is exactly what I suggested in the first place:
This error is due to usage of old base package in version 3.> In .cabal file add dependency on base-4, in form "base >= 4".
Regarding second qustion:
random 1.0.0.1 is installed, i've verified that. what does this error mean?
It means that .cabal file fails to specify dependancy on random package. Add dependancy on "random" package next to "base>=4". This should help. All best Christopher Skrzętnicki

oddly, when i do that, i'm back to the original error message. and sorry, i
didn't understand what you meant, apparently.
On Sat, Jan 31, 2009 at 7:41 PM, Krzysztof Skrzętnicki
2009/2/1 Ezekiel Smithburg
solution to that problem:
deleted the lines from "If flag(splitBase)" on and changed base in Build-Depends to base >= 4.
Well, this is exactly what I suggested in the first place:
This error is due to usage of old base package in version 3.> In .cabal file add dependency on base-4, in form "base >= 4".
Regarding second qustion:
random 1.0.0.1 is installed, i've verified that. what does this error mean?
It means that .cabal file fails to specify dependancy on random package. Add dependancy on "random" package next to "base>=4". This should help.
All best
Christopher Skrzętnicki

testpack builds fine for me. In the original .cabal file there are following lines:
If flag(splitBase) Build-Depends: base >= 3, containers, random Else Build-Depends: base < 3 <<<
Now that I think about it you didn't actually said what is your GHC version.
Knowing that you can replace lines above with one line that matches your
specific configuration.
GHC 6.8.3 :
Build-Depends: base >= 4, containers, random
GHC 6.10.1 :
Build-Depends: base >= 3, containers, random
Please take care to restore and modify the original file.
I think you should read Cabal user guide. This will save your time in the
future:
http://www.haskell.org/ghc/docs/latest/html/Cabal/index.html
I *hope* those changes will fix your installation. I can't really test it,
because testpack build fine with my version of cabal:
C:\Documents and Settings\Metharius>cabal install testpack --reinstall
Resolving dependencies...
'testpack-1.0.0' is cached.
Configuring testpack-1.0.0...
Preprocessing library testpack-1.0.0...
Building testpack-1.0.0...
[1 of 3] Compiling Test.QuickCheck.Instances (
src\Test\QuickCheck\Instances.hs, dist\build\Test\QuickCheck\Instances.o )
[2 of 3] Compiling Test.QuickCheck.Tools ( src\Test\QuickCheck\Tools.hs,
dist\build\Test\QuickCheck\Tools.o )
[3 of 3] Compiling Test.HUnit.Tools ( src\Test\HUnit\Tools.hs,
dist\build\Test\HUnit\Tools.o )
C:\ghc\ghc-6.10.1\bin\ar.exe: creating dist\build\libHStestpack-1.0.0.a
Installing library in C:\Program Files\Haskell\testpack-1.0.0\ghc-6.10.1
Registering testpack-1.0.0...
Reading package info from "dist\\installed-pkg-config" ... done.
Writing new package config file... done.
C:\Documents and Settings\Metharius>cabal install -w
c:\ghc\ghc-6.8.3\bin\ghc testpack --reinstall
Resolving dependencies...
'testpack-1.0.0' is cached.
Configuring testpack-1.0.0...
Preprocessing library testpack-1.0.0...
Building testpack-1.0.0...
[1 of 3] Compiling Test.QuickCheck.Instances (
src/Test/QuickCheck/Instances.hs, dist\build/Test/QuickCheck/Instances.o )
[2 of 3] Compiling Test.QuickCheck.Tools ( src/Test/QuickCheck/Tools.hs,
dist\build/Test/QuickCheck/Tools.o )
[3 of 3] Compiling Test.HUnit.Tools ( src/Test/HUnit/Tools.hs,
dist\build/Test/HUnit/Tools.o )
C:\ghc\ghc-6.10.1\bin\ar.exe: creating dist\build\libHStestpack-1.0.0.a
Installing library in C:\Program Files\Haskell\testpack-1.0.0\ghc-6.8.3
Registering testpack-1.0.0...
Reading package info from "dist\\installed-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.
Perhaps it may also be the difference of installing with "cabal install" and
"runhaskell Setup build".
All best
Christopher Skrzętnicki
2009/2/1 Ezekiel Smithburg
oddly, when i do that, i'm back to the original error message. and sorry, i didn't understand what you meant, apparently.
On Sat, Jan 31, 2009 at 7:41 PM, Krzysztof Skrzętnicki
wrote: 2009/2/1 Ezekiel Smithburg
solution to that problem:
deleted the lines from "If flag(splitBase)" on and changed base in Build-Depends to base >= 4.
Well, this is exactly what I suggested in the first place:
This error is due to usage of old base package in version 3.> In .cabal file add dependency on base-4, in form "base >= 4".
Regarding second qustion:
random 1.0.0.1 is installed, i've verified that. what does this error mean?
It means that .cabal file fails to specify dependancy on random package. Add dependancy on "random" package next to "base>=4". This should help.
All best
Christopher Skrzętnicki

Trying to follow Ezekiel's steps I bumped into this:
D:\biblioteki\testpack-1.0.0>cabal configure Configuring testpack-1.0.0...
D:\biblioteki\testpack-1.0.0>cabal build
Preprocessing library testpack-1.0.0...
Building testpack-1.0.0...
[1 of 3] Compiling Test.QuickCheck.Instances (
src\Test\QuickCheck\Instances.hs, dist\build\Test\QuickCheck\Instances.o )
[2 of 3] Compiling Test.QuickCheck.Tools ( src\Test\QuickCheck\Tools.hs,
dist\build\Test\QuickCheck\Tools.o )
[3 of 3] Compiling Test.HUnit.Tools ( src\Test\HUnit\Tools.hs,
dist\build\Test\HUnit\Tools.o )
src\Test\HUnit\Tools.hs:28:36:
Class `Control.Exception.Exception' used as a type
In the type `Control.Exception.Exception'
In the type `Control.Exception.Exception -> IO a -> IO ()'
In the type `String
-> Control.Exception.Exception -> IO a -> IO ()'
D:\biblioteki\testpack-1.0.0>cabal install
Resolving dependencies...
Configuring testpack-1.0.0...
Preprocessing library testpack-1.0.0...
Building testpack-1.0.0...
[3 of 3] Compiling Test.HUnit.Tools ( src\Test\HUnit\Tools.hs,
dist\build\Test\HUnit\Tools.o )
C:\ghc\ghc-6.10.1\bin\ar.exe: creating dist\build\libHStestpack-1.0.0.a
Installing library in C:\Program Files\Haskell\testpack-1.0.0\ghc-6.10.1
Registering testpack-1.0.0...
Reading package info from "dist\\installed-pkg-config" ... done.
Writing new package config file... done.
<<<
In short: "cabal configure && cabal build" fails, whereas "cabal install"
builds fine. Looks like a bug in cabal-install. Am I right?
All best
Christopher Skrzętnicki
On Sun, Feb 1, 2009 at 03:01, Krzysztof Skrzętnicki
testpack builds fine for me. In the original .cabal file there are following lines:
If flag(splitBase) Build-Depends: base >= 3, containers, random Else Build-Depends: base < 3 <<<
Now that I think about it you didn't actually said what is your GHC version. Knowing that you can replace lines above with one line that matches your specific configuration.
GHC 6.8.3 : Build-Depends: base >= 4, containers, random GHC 6.10.1 : Build-Depends: base >= 3, containers, random
Please take care to restore and modify the original file.
I think you should read Cabal user guide. This will save your time in the future: http://www.haskell.org/ghc/docs/latest/html/Cabal/index.html
I *hope* those changes will fix your installation. I can't really test it, because testpack build fine with my version of cabal:
C:\Documents and Settings\Metharius>cabal install testpack --reinstall Resolving dependencies... 'testpack-1.0.0' is cached. Configuring testpack-1.0.0... Preprocessing library testpack-1.0.0... Building testpack-1.0.0... [1 of 3] Compiling Test.QuickCheck.Instances ( src\Test\QuickCheck\Instances.hs, dist\build\Test\QuickCheck\Instances.o ) [2 of 3] Compiling Test.QuickCheck.Tools ( src\Test\QuickCheck\Tools.hs, dist\build\Test\QuickCheck\Tools.o ) [3 of 3] Compiling Test.HUnit.Tools ( src\Test\HUnit\Tools.hs, dist\build\Test\HUnit\Tools.o ) C:\ghc\ghc-6.10.1\bin\ar.exe: creating dist\build\libHStestpack-1.0.0.a Installing library in C:\Program Files\Haskell\testpack-1.0.0\ghc-6.10.1 Registering testpack-1.0.0... Reading package info from "dist\\installed-pkg-config" ... done. Writing new package config file... done.
C:\Documents and Settings\Metharius>cabal install -w c:\ghc\ghc-6.8.3\bin\ghc testpack --reinstall Resolving dependencies... 'testpack-1.0.0' is cached. Configuring testpack-1.0.0... Preprocessing library testpack-1.0.0... Building testpack-1.0.0... [1 of 3] Compiling Test.QuickCheck.Instances ( src/Test/QuickCheck/Instances.hs, dist\build/Test/QuickCheck/Instances.o ) [2 of 3] Compiling Test.QuickCheck.Tools ( src/Test/QuickCheck/Tools.hs, dist\build/Test/QuickCheck/Tools.o ) [3 of 3] Compiling Test.HUnit.Tools ( src/Test/HUnit/Tools.hs, dist\build/Test/HUnit/Tools.o ) C:\ghc\ghc-6.10.1\bin\ar.exe: creating dist\build\libHStestpack-1.0.0.a Installing library in C:\Program Files\Haskell\testpack-1.0.0\ghc-6.8.3 Registering testpack-1.0.0... Reading package info from "dist\\installed-pkg-config" ... done. Saving old package config file... done. Writing new package config file... done.
Perhaps it may also be the difference of installing with "cabal install" and "runhaskell Setup build".
All best
Christopher Skrzętnicki
2009/2/1 Ezekiel Smithburg
oddly, when i do that, i'm back to the original error message. and sorry, i didn't understand what you meant, apparently.
On Sat, Jan 31, 2009 at 7:41 PM, Krzysztof Skrzętnicki
wrote: 2009/2/1 Ezekiel Smithburg
solution to that problem:
deleted the lines from "If flag(splitBase)" on and changed base in Build-Depends to base >= 4.
Well, this is exactly what I suggested in the first place:
This error is due to usage of old base package in version 3.> In .cabal file add dependency on base-4, in form "base >= 4".
Regarding second qustion:
random 1.0.0.1 is installed, i've verified that. what does this error mean?
It means that .cabal file fails to specify dependancy on random package. Add dependancy on "random" package next to "base>=4". This should help.
All best
Christopher Skrzętnicki

Ezekiel Smithburg wrote:
this is the error message i get:
Hi everyone, Thanks for the report. I just realized that I inadvertantly released testpack-1.0.0 without my GIT patch[1] that fixed GHC 6.10 compatibility. testpack 1.0.2 is out there now with that fix. Sorry for the inconvenience. -- John [1] http://git.complete.org/testpack?a=commit;h=c4966a78e48b56c9d2e354f361712bbf... with diff at http://git.complete.org/testpack?a=commitdiff_plain;h=c4966a78e48b56c9d2e354...
participants (3)
-
Ezekiel Smithburg
-
John Goerzen
-
Krzysztof Skrzętnicki