Problem building HXQ on Mac OS 10.5.5

Hi, I'm new to haskell and wonted to start tinkering a bit with this language, specifically with HXQ. I have installed ghc with macports. Now while building HXQ I get the following error: Main.hs:20:9: Not in scope: type constructor or class `C.SomeException' Unfortunately I'm also new to Mac OS X. Before I developed on Linux. It would be great, if someone could give me a hint. Thanks, Tobias PS: Below the details -- ~$ cabal install hxq Resolving dependencies... 'HXQ-0.11.0' is cached. Configuring HXQ-0.11.0... Preprocessing library HXQ-0.11.0... Preprocessing executables for HXQ-0.11.0... Building HXQ-0.11.0... . . . Loading package haskell98 ... linking ... done. [20 of 21] Compiling Text.XML.HXQ.XQuery ( src/Text/XML/HXQ/XQuery.hs, dist/build/xquery/xquery-tmp/Text/XML/HXQ/XQuery.o ) [21 of 21] Compiling Main ( Main.hs, dist/build/xquery/ xquery-tmp/Main.o ) Main.hs:20:9: Not in scope: type constructor or class `C.SomeException' cabal: Error: some packages failed to install: HXQ-0.11.0 failed during the building phase. The exception was: exit: ExitFailure 1 -- ~$ ghc-pkg list /opt/local/lib/ghc-6.10.1/./package.conf: Cabal-1.6.0.1, HUnit-1.2.0.3, QuickCheck-1.2.0.0, array-0.2.0.0, base-3.0.3.0, base-4.0.0.0, bytestring-0.9.1.4, containers-0.2.0.0, directory-1.0.0.2, (dph-base-0.3), (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3), (dph-seq-0.3), editline-0.2.1.0, filepath-1.1.0.1, (ghc-6.10.1), ghc-prim-0.1.0.0, haddock-2.3.0, haskell-src-1.0.1.3, haskell98-1.0.1.0, hpc-0.5.0.2, html-1.0.1.2, integer-0.1.0.0, mtl-1.1.0.2, network-2.2.0.1, old-locale-1.0.0.1, old-time-1.0.0.1, packedstring-0.1.0.1, parallel-1.1.0.0, parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.0, random-1.0.0.1, regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3, rts-1.0, stm-2.1.1.2, syb-0.1.0.0, template-haskell-2.3.0.0, time-1.1.2.2, unix-2.3.1.0, xhtml-3000.2.0.1 /Users/tobias/.ghc/i386-darwin-6.10.1/package.conf: readline-1.0.1.0 -- Tobias Kräntzer info@tobias-kraentzer.de

On Tue, Dec 2, 2008 at 9:49 AM, Tobias Kräntzer
Hi,
I'm new to haskell and wonted to start tinkering a bit with this language, specifically with HXQ. I have installed ghc with macports.
Now while building HXQ I get the following error:
Main.hs:20:9: Not in scope: type constructor or class `C.SomeException'
Unfortunately I'm also new to Mac OS X. Before I developed on Linux. It would be great, if someone could give me a hint.
I think you should be able to build it if you manually download the .tar.gz file from Hackage and then type: runghc Setup configure runghc Setup build runghc Setup install The Control.Exception module was changed in ghc-6.10.1 (specifically, in the base-4 package). HXQ's code assumes that when compiling with ghc-6.10 you're always using base-4; however, that compiler also comes with base-3.0.3 which is a compatibility package providing the same interface as previous versions of ghc. The 'cabal install' program tries to be helpful and selects base-3.0.3 (since HXQ does not specify which to use), causing the above error. I've cc'd the package author on this. A possible fix would be to use the extensible-exceptions package, or otherwise just copy the logic from its .cabal file. -Judah
participants (2)
-
Judah Jacobson
-
Tobias Kräntzer