Re: GHC Installation Location

2001-10-25 Thread Mieszko Lis
On Thu, Oct 25, 2001 at 04:45:13PM -0700, Ashley Yakeley wrote: > >I'm not sure this would be so good when you want to have two versions of ghc > >installed on the same machine... > > Currently the Debian ghc5 package installs links such as /usr/bin/ghc > using the 'alternatives' system. You'd j

RE: GHC Installation Location

2001-10-25 Thread Ashley Yakeley
At 2001-10-25 03:18, Ashley Yakeley wrote: >>I've wondered at various times in the past whether there ought to be a >>link from /usr/local/includes/ghc to /usr/local/lib/ghc-5.02/includes. > >Won't help, my GHC is installed at /usr/lib/ghc-5.02/, exactly where the >Debian package put it. Actual

Fwd: Can I install HOpenGL in Windows?

2001-10-25 Thread Michael Weber
* Denver <[EMAIL PROTECTED]> [2001-10-26T01:25+1000]: > >Please help. I would like to use HOpenGL within Windows, so I wanted >to ask whether it was possible, and if it is, I would like to request >for help. Any help greatly appreciated. Hi! I'm sorry, I don't know much about the

Reading files via http or ftp

2001-10-25 Thread Colin Paul Adams
Has anyone used the Socket library to read files specified via an http and/or ftp URL? -- Colin Paul Adams Preston Lancashire ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: qforeign-0.65: Bzip2: decompress hangs if data ends prematurely

2001-10-25 Thread Marcin 'Qrczak' Kowalczyk
Thu, 25 Oct 2001 12:06:53 +0200 (CEST), Michael Marte <[EMAIL PROTECTED]> pisze: > I found that decompress hangs if data ends prematurely, i.e. > > do > content <- readFile fp > doSomething (Bzip2.decompress content) > > does not terminate in this case. Try this patch (sorry

Re: GHC Installation Location

2001-10-25 Thread Mieszko Lis
On Thu, Oct 25, 2001 at 11:01:42AM +0100, Simon Marlow wrote: > I've wondered at various times in the past whether there ought to be a > link from /usr/local/includes/ghc to /usr/local/lib/ghc-5.02/includes. I'm not sure this would be so good when you want to have two versions of ghc installed on

Re: GHC Installation Location

2001-10-25 Thread Michael Weber
On Thu, Oct 25, 2001 at 03:18:33 -0700, Ashley Yakeley wrote: > At 2001-10-25 03:01, Simon Marlow wrote: > > >I've wondered at various times in the past whether there ought to be a > >link from /usr/local/includes/ghc to /usr/local/lib/ghc-5.02/includes. > > Won't help, my GHC is installed at /u

Help with cygwin and ghc

2001-10-25 Thread Reuben Thomas
Denver writes: > I would like to request help concerning the installation of ghc to > cygwin. I have tried the websites, and they didn't work, as it > didn't let me compile. What's the problem? Have you followed all the instructions? If so, can you provide a sample of what's going wrong when you

Help with cygwin and ghc

2001-10-25 Thread Denver
I would like to request help concerning the installation of ghc to cygwin.  I have tried the websites, and they didn't work, as it didn't let me compile.   Thank you

Re: GHC Installation Location

2001-10-25 Thread Malcolm Wallace
> Is there an easy way to get 'ghc' or one of the other binaries to tell me > where the GHC installation directory is? I want to put the includes > directory in a gcc -I flag in my makefile. For ghc >= 5.00, but not on Windows: #!/bin/sh GHCDIR=`grep '^libdir' ${whichGHC} | head -1 | s

RE: gtk+hs and libgmp

2001-10-25 Thread Simon Marlow
> On Thu, 2001-10-25 at 12:04, Simon Marlow wrote: > > > > > The version in /opt/ghc/lib/ghc-5.02 should work, as should > /usr/local/lib/libgmp.so.3.1.1. The version in /usr/lib > looks like GMP 2, so that would cause the link errors. > > > > Make sure the link command line doesn't have -L/

RE: gtk+hs and libgmp

2001-10-25 Thread Gérard Milmeister
On Thu, 2001-10-25 at 12:04, Simon Marlow wrote: > > The version in /opt/ghc/lib/ghc-5.02 should work, as should >/usr/local/lib/libgmp.so.3.1.1. The version in /usr/lib looks like GMP 2, so that >would cause the link errors. > > Make sure the link command line doesn't have -L/usr/lib on it,

RE: Thread-Safety through FFI

2001-10-25 Thread Simon Marlow
> >This might work, but no guarantees. > > OK, so I'd be better off making sure all Haskell runs in one > OS-thread. My concerns still apply - non-thread-friendly library calls may mean that GHC's RTS interacts badly with the rest of your threaded program. > Although presumably I can use Haske

RE: GHC Installation Location

2001-10-25 Thread Simon Marlow
> At 2001-10-25 03:01, Simon Marlow wrote: > > >I've wondered at various times in the past whether there > ought to be a > >link from /usr/local/includes/ghc to > /usr/local/lib/ghc-5.02/includes. > > Won't help, my GHC is installed at /usr/lib/ghc-5.02/, > exactly where the > Debian package

Profiling in GHC-4.08.1

2001-10-25 Thread Reuben Thomas
Andre W B Furtado writes: > I was trying to compile a .hs file with the profiling option enabled > (-prof -auto-all) but I got an error message: > > /usr/bin/ld: cannot find -lHSstd_p_imp > collect2: ld returned 1 exit status > > Does anyone know what is this "-lHSstd_p_imp"? I am using GHC-4.08

RE: Thread-Safety through FFI

2001-10-25 Thread Ashley Yakeley
At 2001-10-25 03:12, Simon Marlow wrote: >This might work, but no guarantees. OK, so I'd be better off making sure all Haskell runs in one OS-thread. Although presumably I can use Haskell-threads: I can have a special Haskell-thread that handled a queue of incoming execution requests, firing

Re: Existential Typing (was Multi-parameter OOP)

2001-10-25 Thread George Russell
Leon Smith wrote: [snip] > If GHC had true existential typing, as opposed to just existential datatypes, > you could reasonably code what I think you want like this: > > class A a where > basicA :: Bool > nextA :: a -> (EX a'. A a' => a') > basicA = True > nextA = id > > data W

RE: GHC Installation Location

2001-10-25 Thread Ashley Yakeley
At 2001-10-25 03:01, Simon Marlow wrote: >I've wondered at various times in the past whether there ought to be a >link from /usr/local/includes/ghc to /usr/local/lib/ghc-5.02/includes. Won't help, my GHC is installed at /usr/lib/ghc-5.02/, exactly where the Debian package put it. And now that l

RE: Thread-Safety through FFI

2001-10-25 Thread Simon Marlow
> >It isn't safe to call foreign exported > >functions from more that one OS thread simultaneously. > > OK, can I call a foreign exported function from some other > thread while > the main thread is in 'foreign import' native code? I could > have calls to > the foreign exported function block

qforeign-0.65: Bzip2: decompress hangs if data ends prematurely

2001-10-25 Thread Michael Marte
Hello *, I found that decompress hangs if data ends prematurely, i.e. do content <- readFile fp doSomething (Bzip2.decompress content) does not terminate in this case. Data that is corrupt in some other way (for example, decompressing a file that has not been generated w

RE: gtk+hs and libgmp

2001-10-25 Thread Simon Marlow
> When trying to compile the examples in gtk+hs, I get the > following link > errors: > /opt/ghc/lib/ghc-5.02/libHSstd.a(PrelFloat__413.o): In > function `shP2_2_alt': > PrelFloat__413.o(.text+0x2b0): undefined reference to `__gmpz_cmp_si' > etc.. > When linking simple programs, this doesn't oc

RE: GHC Installation Location

2001-10-25 Thread Simon Marlow
> Is there an easy way to get 'ghc' or one of the other > binaries to tell me > where the GHC installation directory is? I want to put the includes > directory in a gcc -I flag in my makefile. On a Unix platform, the 'ghc' wrapper script contains the installation directory, which is passed as

Re: Socket library

2001-10-25 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: > Unfortunately, I am currently working on WinNT and would not like to > go back and install ghc4.08. Is there an easy way to patch this problem > in my 5.02 installation. Maybe you're just lacking the Wintendo equivalent of /etc/protocols, but I don't k

gtk+hs and libgmp

2001-10-25 Thread Gérard Milmeister
When trying to compile the examples in gtk+hs, I get the following link errors: /opt/ghc/lib/ghc-5.02/libHSstd.a(PrelFloat__413.o): In function `shP2_2_alt': PrelFloat__413.o(.text+0x2b0): undefined reference to `__gmpz_cmp_si' etc.. When linking simple programs, this doesn't occur. I have the fol

GHC Installation Location

2001-10-25 Thread Ashley Yakeley
Is there an easy way to get 'ghc' or one of the other binaries to tell me where the GHC installation directory is? I want to put the includes directory in a gcc -I flag in my makefile. -- Ashley Yakeley, Seattle WA ___ Glasgow-haskell-users mailing

Re: Socket library

2001-10-25 Thread Sven Eric Panitz
as I have learnt now, there are problems with Sockets and ghc 5.02: http://haskell.org/pipermail/glasgow-haskell-users/2001-October/001008.html Unfortunately, I am currently working on WinNT and would not like to go back and install ghc4.08. Is there an easy way to patch this problem in my 5.