From: Dean M. B. <mik...@gm...> - 2009-03-19 15:08:57
|
Hi Guys, I get this when I do 'cabal install haskelldb-hsql': Resolving dependencies... [1 of 1] Compiling Main ( /tmp/haskelldb-hsql-0.101938/haskelldb-hsql-0.10/Setup.hs, /tmp/haskelldb-hsql-0.101938/haskelldb-hsql-0.10/dist/setup/Main.o ) Linking /tmp/haskelldb-hsql-0.101938/haskelldb-hsql-0.10/dist/setup/setup ... Configuring haskelldb-hsql-0.10... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Preprocessing library haskelldb-hsql-0.10... Building haskelldb-hsql-0.10... Database/HaskellDB/HSQL.hs:25:7: Could not find module `System.Time': it is a member of package old-time-1.0.0.1, which is hidden cabal: Error: some packages failed to install: haskelldb-hsql-0.10 failed during the building phase. The exception was: exit: ExitFailure 1 Anything I can do to get this fixed? Running 'ghc-pkg describe old-time' yields this: name: old-time version: 1.0.0.1 license: BSD3 copyright: maintainer: lib...@ha... stability: homepage: package-url: description: This package provides the old time library. For new code, the new time library is recommended. category: System author: exposed: True exposed-modules: System.Time hidden-modules: import-dirs: /usr/lib64/ghc-6.10.1/old-time-1.0.0.1 library-dirs: /usr/lib64/ghc-6.10.1/old-time-1.0.0.1 hs-libraries: HSold-time-1.0.0.1 extra-libraries: extra-ghci-libraries: include-dirs: /usr/lib64/ghc-6.10.1/old-time-1.0.0.1/include includes: HsTime.h depends: base-4.0.0.0 old-locale-1.0.0.1 hugs-options: cc-options: ld-options: framework-dirs: frameworks: haddock-interfaces: /usr/share/doc/ghc-6.10.1/libraries/old-time/old-time.haddock haddock-html: /usr/share/doc/ghc-6.10.1/libraries/old-time Am I missing anything obvious? TIA -- Dean Michael Berris | Software Engineer, Friendster, Inc. blog.cplusplus-soup.com | twitter.com/mikhailberis | linkedin.com/in/mikhailberis | profiles.friendster.com/mikhailberis | deanberris.com |
From: Justin B. <jgb...@gm...> - 2009-03-19 15:39:23
|
You want to add old-time as a dependency in the cabal file for haskelldb-hsql. Word of caution - hsql isn't very well maintained, I dont think. You are better going with HDBC. On Thu, Mar 19, 2009 at 8:08 AM, Dean Michael Berris <mik...@gm... > wrote: > Hi Guys, > > I get this when I do 'cabal install haskelldb-hsql': > > Resolving dependencies... > [1 of 1] Compiling Main ( > /tmp/haskelldb-hsql-0.101938/haskelldb-hsql-0.10/Setup.hs, > /tmp/haskelldb-hsql-0.101938/haskelldb-hsql-0.10/dist/setup/Main.o ) > Linking /tmp/haskelldb-hsql-0.101938/haskelldb-hsql-0.10/dist/setup/setup > ... > Configuring haskelldb-hsql-0.10... > Warning: No 'build-type' specified. If you do not need a custom Setup.hs or > ./configure script then use 'build-type: Simple'. > Preprocessing library haskelldb-hsql-0.10... > Building haskelldb-hsql-0.10... > > Database/HaskellDB/HSQL.hs:25:7: > Could not find module `System.Time': > it is a member of package old-time-1.0.0.1, which is hidden > cabal: Error: some packages failed to install: > haskelldb-hsql-0.10 failed during the building phase. The exception was: > exit: ExitFailure 1 > > Anything I can do to get this fixed? Running 'ghc-pkg describe > old-time' yields this: > > name: old-time > version: 1.0.0.1 > license: BSD3 > copyright: > maintainer: lib...@ha... > stability: > homepage: > package-url: > description: This package provides the old time library. > For new code, the new time library is recommended. > category: System > author: > exposed: True > exposed-modules: System.Time > hidden-modules: > import-dirs: /usr/lib64/ghc-6.10.1/old-time-1.0.0.1 > library-dirs: /usr/lib64/ghc-6.10.1/old-time-1.0.0.1 > hs-libraries: HSold-time-1.0.0.1 > extra-libraries: > extra-ghci-libraries: > include-dirs: /usr/lib64/ghc-6.10.1/old-time-1.0.0.1/include > includes: HsTime.h > depends: base-4.0.0.0 old-locale-1.0.0.1 > hugs-options: > cc-options: > ld-options: > framework-dirs: > frameworks: > haddock-interfaces: > /usr/share/doc/ghc-6.10.1/libraries/old-time/old-time.haddock > haddock-html: /usr/share/doc/ghc-6.10.1/libraries/old-time > > Am I missing anything obvious? > > TIA > > -- > Dean Michael Berris | Software Engineer, Friendster, Inc. > blog.cplusplus-soup.com | twitter.com/mikhailberis | > linkedin.com/in/mikhailberis | profiles.friendster.com/mikhailberis | > deanberris.com > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Haskelldb-users mailing list > Has...@li... > https://lists.sourceforge.net/lists/listinfo/haskelldb-users > |
From: Dean M. B. <mik...@gm...> - 2009-03-19 15:48:26
|
On Thu, Mar 19, 2009 at 11:39 PM, Justin Bailey <jgb...@gm...> wrote: > You want to add old-time as a dependency in the cabal file for > haskelldb-hsql. Word of caution - hsql isn't very well maintained, I dont > think. You are better going with HDBC. > Thanks. So I have to hack it manually? My problem with ODBC in general is that I've been running into problems where the MySQL ODBC driver doesn't do auto-reconnection properly. Explicitly opening and closing connections causes my Haskell application to crash for some reason with a segmentation fault. Debugging ODBC errors is no fun too, so that's why I'm looking around for an alternative. Thanks again, hopefully I can get that to work somehow and see if I get farther with HSQL instead of HDBC. -- Dean Michael Berris | Software Engineer, Friendster, Inc. blog.cplusplus-soup.com | twitter.com/mikhailberis | linkedin.com/in/mikhailberis | profiles.friendster.com/mikhailberis | deanberris.com |