RE: instance..= L a a

1998-10-19 Thread Sigbjorn Finne (Intl Vendor)
[EMAIL PROTECTED] writes: ghc-4 does not allow what ghc-3.02 did: ... instance Ring a = LeftModule a a where cMul = mul ghc-4 says Illegal instance declaration for `LeftModule a a' (There must be at least one non-type-variable in the instance head) If Haskell-2

RE: Green Card and calling Haskell from C

1998-12-03 Thread Sigbjorn Finne (Intl Vendor)
Graeme E Moss [EMAIL PROTECTED] writes: In the on-line documentation for Green Card at: http://www.dcs.gla.ac.uk/fp/software/green-card/users-guide-9.html there is the following option for invoking green-card: --gc-safe Generates code that can use callbacks to Haskell (GHC

RE: Is there anybody who can help me with this

1999-01-08 Thread Sigbjorn Finne (Intl Vendor)
Marc van Dongen [EMAIL PROTECTED] writes: Dear all, Hopefully somebody can help me out with this. I am looking for the file where the low level primops for operations on Integers are defined. I've had a look in Primops.h but that only includes cmpInteger# and a few friends. Where

RE: getChar without pressing return?

1999-01-30 Thread Sigbjorn Finne (Intl Vendor)
Hi, have a look at the documentation for the IO library and its Handle buffering operations. To turn off the buffering of input, try doing something like the following, main = hSetBuffering stdin Nobuffering getChar = putChar Strictly speaking, Hugs is in the wrong here, but there's good

RE: 2 questions: CVS Win32

1999-02-01 Thread Sigbjorn Finne (Intl Vendor)
Frank A. Christoph [mailto:[EMAIL PROTECTED]] writes: First, a CVS question. I am a real CVS novice so bear with me. I finally managed to use CVS to get the current 4.02 GHC distribution (and to compile it! :). Now, I understand how one can create recursive diffs between versions,

RE: 2 questions: CVS Win32

1999-02-03 Thread Sigbjorn Finne (Intl Vendor)
Frank A. Christoph writes: ... I tried "cvs diff" from the fptools/ghc, but it doesn't seem to work for me. I get a series of messages: cvs server: Diffing . cvs server: Diffing compiler cvs server: Diffing compiler/absCSyn ... but no diffs. Having done that, I wondered if

RE: Uncompiling internal names...

1999-02-11 Thread Sigbjorn Finne (Intl Vendor)
Alex Ferguson [EMAIL PROTECTED] writes: ... Here's our convention for splitting up the interface file name space: d...dictionary identifiers (local variables, so no name-clash worries) Hrm. So, whence the trailing 0's? They all seem to be

RE: `sort'

1999-02-16 Thread Sigbjorn Finne (Intl Vendor)
Have a look at the Util module in '-syslib misc', it provides a variety of sorting algorithms, including said merge sort. If you want others, check out Ralf Hinze's pages at http://www.informatik.uni-bonn.de/~ralf/ --Sigbjorn [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] writes: Carl

RE: sortings

1999-02-16 Thread Sigbjorn Finne (Intl Vendor)
[EMAIL PROTECTED] writes: To my Indeed, i voice for the merge sort ... Sigbjorn Finne [EMAIL PROTECTED] writes Have a look at the Util module in '-syslib misc', it provides a variety of sorting algorithms, including said merge sort. If you want others, check out Ralf

Mutable array ops (was: file operations)

1999-03-05 Thread Sigbjorn Finne (Intl Vendor)
Martin Stein [EMAIL PROTECTED] writes: .. Yes, I tried to use them but missed some functions to handle ByteArrays, particularly 1. How can I get a ByteArray? (freezing a MutableByteArray seems to be a little strange) Strange as it might be, but that's the way :)If you want to hide

RE: Xlib IDL for H/Direct?

1999-03-29 Thread Sigbjorn Finne (Intl Vendor)
Sven Panne [mailto:[EMAIL PROTECTED]] writes: "Sigbjorn Finne (Intl Vendor)" wrote: Sven Panne wrote: What's wrong with using Green Card? Its %enum generates the desired mappings automatically and consistently. AFAIK, this type safety is something even IDL compiler

RE: Q: Threads in GHC's RTS

1999-04-09 Thread Sigbjorn Finne (Intl Vendor)
Sven Panne [EMAIL PROTECTED] writes: [...] Aaaah! *lights going on* But then I suggest that foreign export dynamic should be changed to return a stable pointer instead of an Addr. This shouldn't break too much code, because both are CCallable. I don't see the need, since (deep

RE: Please could the Concurrency library have a yield action!

1999-05-10 Thread Sigbjorn Finne (Intl Vendor)
George Russell [EMAIL PROTECTED] writes: "Sigbjorn Finne (Intl Vendor)" wrote: Is it worth adding something like `yield' to the Concurrent API? I'm unconvinced, but don't feel strongly about it. If there are others that also think that it should be supported, let me know

RE: (Stupid?) newbie question

1999-09-01 Thread Sigbjorn Finne (Intl Vendor)
Hi, not a stupid question, just a stupid bug in 4.03 ;-) This has been fixed in the patch available from the ghc-win32 web page, http://www.dcs.gla.ac.uk/~sof/ghc-win32.html http://www.dcs.gla.ac.uk/~sof/ghc-win32.html hth --sigbjorn -Original Message- From: felix [mailto:[EMAIL

RE: CCallable Integers

1999-07-27 Thread Sigbjorn Finne (Intl Vendor)
I think you're asking whether POSIX types should be given a type/synonym on the Haskell side. The Posix library does define some of them, but not all - e.g., size_t isn't. I'm sure patches which extended that library so as to have these would be welcomed by the GHC developers. --sigbjorn

RE: redirecting *.hi

1999-07-27 Thread Sigbjorn Finne (Intl Vendor)
Simon Marlow [EMAIL PROTECTED] writes: Sergey: One small correction: The sed script should be: sed -e 's/.*\/\([^\/][^\/]*\)\.hs/$(E)\/\1.o, $(E)\/\1.hi/' Of course: :g/.*\/\([^\/][^\/]*\)\.hs/s//$(E)\/\1.o, $(E)\/\1.hi/ in vi should also work. -odir blah