Re: [Haskell-cafe] Haskell on Debian - gcc compilation problem with cabal installed libs like hmatrix, etc.

2010-12-20 Thread gutti
Hi Henk-Jan, thanks for the advice - using hmatrix already worked, but only with simple matrices. I'll check the dependencies thanks. Hi Jason, thanks a lot for the response. Looks like I found a like minded soul. These links indeed sound very relevent for me. Thanks and see u around,

[Haskell-cafe] Haskell on Debian - gcc compilation problem with cabal installed libs like hmatrix, etc.

2010-12-19 Thread gutti
Hi, I'm very new to Haskell and this Forum, just doing my first steps ... -- Try to use the hmatrix package for vector and matrix calculations. The haskell compilation works (no problem in GHCi mode), the gcc however compilation fails with messages like: EFA.o: In function `r1bo_info':

Re: [Haskell-cafe] Haskell on Debian - gcc compilation problem with cabal installed libs like hmatrix, etc.

2010-12-19 Thread Jason
Hi Phil, I hope your Haskell journey so far has been enjoyable. I'm rather new myself, but I'm pretty sure the answer to your question is: By default, ghc doesn't try to include all the libraries that you import when you compile with ghc test.hs. You can either specify these manually: ghc

Re: [Haskell-cafe] Haskell on Debian - gcc compilation problem with cabal installed libs like hmatrix, etc.

2010-12-19 Thread gutti
Hi Jason, many,many thanks - it works. -- u saved the day Haskell rather seems like a steeper slope to be honest, but I find the whole language concept very fascinating. What I can't imagine yet, how to address typical oo-problems especially when its not allowed to update and change

Re: [Haskell-cafe] Haskell on Debian - gcc compilation problem with cabal installed libs like hmatrix, etc.

2010-12-19 Thread Henk-Jan van Tuyl
On Sun, 19 Dec 2010 21:32:00 +0100, gutti philipp.guttenb...@gmx.net wrote: Try to use the hmatrix package for vector and matrix calculations. The haskell compilation works (no problem in GHCi mode), the gcc however compilation fails with messages like: EFA.o: In function `r1bo_info':

Re: [Haskell-cafe] Haskell on Debian - gcc compilation problem with cabal installed libs like hmatrix, etc.

2010-12-19 Thread Jason
Phil, I found Haskell to be a pretty steep slope at first too, but it helped me to start out small and work my way up. And now its my favorite tool in the arsenal! One of the steps I took was to do quite a few of the Project Euler ( http://projecteuler.net/) problems, and then after cobbling

Re: [Haskell-cafe] Haskell on Debian

2010-04-05 Thread Alex Rozenshteyn
Anyone? On Wed, Mar 31, 2010 at 9:18 PM, Alex Rozenshteyn rpglove...@gmail.comwrote: $ ghc-pkg check outputs nothing $ ghc-pkg list unix /var/lib/ghc-6.12.1/package.conf.d unix-2.4.0.0 /home/alex/.ghc/x86_64-linux-6.12.1/package.conf.d unix appears to be in the build-depends of the

Re: [Haskell-cafe] Haskell on Debian

2010-04-05 Thread Daniel Fischer
Am Montag 05 April 2010 17:19:35 schrieb Alex Rozenshteyn: Anyone? base isn't listed among the build-depends of the executable, so the obvious thing is to add base to the build-depends and see what happens then (might also be necessary for some other packages). I'm not sure whether iterating

Re: [Haskell-cafe] Haskell on Debian

2010-04-05 Thread Alex Rozenshteyn
I did try that; after adding a bunch of packages to the .cabal file and trying to build i get this: [ 1 of 81] Compiling Plugin.Dict.DictLookup ( Plugin/Dict/DictLookup.hs, dist/build/lambdabot/lambdabot-tmp/Plugin/Dict/DictLookup.o ) Plugin/Dict/DictLookup.hs:33:4: Ambiguous type variable

Re: [Haskell-cafe] Haskell on Debian

2010-04-05 Thread Daniel Fischer
Am Montag 05 April 2010 17:39:29 schrieb Alex Rozenshteyn: I did try that; after adding a bunch of packages to the .cabal file and trying to build i get this: [ 1 of 81] Compiling Plugin.Dict.DictLookup ( Plugin/Dict/DictLookup.hs, dist/build/lambdabot/lambdabot-tmp/Plugin/Dict/DictLookup.o )

[Haskell-cafe] Haskell on Debian

2010-03-31 Thread Alex Rozenshteyn
I tend to install haskell packages from apt whenever possible. One such package is unix, which appears to come provided by the ghc6 debian package. I'm trying to cabal install lambdabot and getting the following: $ cabal install lambdabot Resolving dependencies... Configuring

Re: [Haskell-cafe] Haskell on Debian

2010-03-31 Thread Ivan Miljenovic
On 1 April 2010 11:42, Alex Rozenshteyn rpglove...@gmail.com wrote: Main.hs:11:7:     Could not find module `System.Posix.Signals':       It is a member of the hidden package `unix-2.4.0.0'.       Perhaps you need to add `unix' to the build-depends in your .cabal file. Interesting, because

Re: [Haskell-cafe] Haskell on Debian

2010-03-31 Thread Alex Rozenshteyn
$ ghc-pkg check outputs nothing $ ghc-pkg list unix /var/lib/ghc-6.12.1/package.conf.d unix-2.4.0.0 /home/alex/.ghc/x86_64-linux-6.12.1/package.conf.d unix appears to be in the build-depends of the Library, but not in the build-depends of Executable lambdabot Adding unix to the second