hsql won't install due to system.time

Database/HaskellDB/HSQL.hs:25:7: Could not find module `System.Time': it is a member of the hidden package `old-time-1.0.0.3' it is a member of the hidden package `old-time-1.0.0.2' Use -v to see a list of the files searched for. old-time-1.0.0.2 is installed (via cabal). Suggestions on how to fix this or which haskell db (for sqlite3) package will actually install greatly appreciated. I get a lot of failures in hackages which involve that dreaded "hidden package" message. Anybody care to enlighten us mere mortals as to why it seems to occur so frequently (at least for me). Brian

On 21 Jan 2010, at 06:10, Brian Denheyer wrote:
Database/HaskellDB/HSQL.hs:25:7: Could not find module `System.Time': it is a member of the hidden package `old-time-1.0.0.3' it is a member of the hidden package `old-time-1.0.0.2'
Suggestions on how to fix this ...
The easiest workaround is to change your local copy of the .cabal file
for hsql, modifying the build-depends line to make a more precise
dependency on old-time, e.g.
build-depends: old-time-1.0.0.2
If you are using cabal install, then you may need to take a couple of
extra steps in order to be able to edit the .cabal file, e.g.
cabal fetch hsql
cd hsql-1.7.1

On Thu, 21 Jan 2010 09:01:01 +0000
Malcolm Wallace
The easiest workaround is to change your local copy of the .cabal file for hsql, modifying the build-depends line to make a more precise dependency on old-time, e.g. build-depends: old-time-1.0.0.2
First of all, apologies are in order, the package I am having trouble with is haskelldb-hsql-sqlite3. hsql installed just fine, as well as hsql-sqlite3. In all of the hackage database package excitement I got confused. Here's what I tried : add old-time-1.0.0.2 to the _end_ of the build-depends line: cabal: haskelldb-hsql-sqlite3.cabal:7: Parse of field 'build-depends' failed. Interestingly, if I simply add old-time then I don't get that error but instead my good friend the "hidden package" error. I tried giving it it's own build-depends line, but adding the version suffix still gives me the parse error. ?? Brian

Hi Brian hsql is compatibel with most recent ghc yet. You can get patches for the .cabal files here: http://github.com/MarcWeber/haskell-nix-overlay/tree/master/patches/ However the Exception handling has to be rewritten as well. I wanted to fix this issues for weeks - No time. Let me know if you start working on this. Marc Weber

On Thu, 21 Jan 2010 11:36:42 +0100
Marc Weber
Hi Brian
hsql is compatibel with most recent ghc yet.
Well I am using 6.10.4, so should I use a patched version, or simply apply the fixes which Malcolm provided ?
You can get patches for the .cabal files here: http://github.com/MarcWeber/haskell-nix-overlay/tree/master/patches/
However the Exception handling has to be rewritten as well. I wanted to fix this issues for weeks - No time.
Are you waiting to get this done before releasing a new version to Hackage ?
Let me know if you start working on this.
You _really_ don't want me working on anything, trust me. Hopefully some fine Haskell hacker who would also like to use hsql will volunteer. Brian

Hi Brian
You _really_ don't want me working on anything, trust me. Hopefully some fine Haskell hacker who would also like to use hsql will volunteer. You make me smile. I learned Haskell for the same reason. "Don't trust me but trust Haskell" *kidding*
If you want to work on it I can help you getting started. We both will benefit. You can contact me on irc.freenode.net anytime (nick MarcWeber) Of course If you're interested only in running some small queries you should just use PHP or another language of your choice :) Of course if you have some patches try them first. That will be faster if that works Marc Weber

Hi Marc, I've just finished hsql with up-to-date exception handling, which I will call hsql-1.8.1, as catchSql & handleSql can be regarded as deprecated now -- only having some final testing lest. Excuse me for the delay. Let me know if you want to be a beta tester... ;-) Cheers, Nick Marc Weber wrote:
Hi Brian
hsql is compatibel with most recent ghc yet.
You can get patches for the .cabal files here: http://github.com/MarcWeber/haskell-nix-overlay/tree/master/patches/
However the Exception handling has to be rewritten as well. I wanted to fix this issues for weeks - No time.
Let me know if you start working on this.
Marc Weber _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
Brian Denheyer
-
Jörg Roman Rudnick
-
Malcolm Wallace
-
Marc Weber