DLL problem with GHC 6.0.1

2003-08-01 Thread Mark Tehver
Hi, I have run into something in GHC that looks like a bug (GHC 6.0.1 under Win2k). A DLL with several exported FFI functions reports (and then terminates): ghcDll: internal error: schedule: invalid what_next field Please report this as a bug to [EMAIL PROTECTED], or

RE: Strange Building problem...

2003-08-01 Thread Simon Marlow
On Thu, 31 Jul 2003 13:57:02 +0100, you wrote: What is odd is that ghc-inplace is invoked by the make process several times before this big one (which appears to be the start of stage 2?) and works fine... Do the errors really refer to GHCziBase_True_Closure, or is it

Re: Strange Building problem...

2003-08-01 Thread Mark Green
On Fri, 1 Aug 2003 12:38:09 +0100, you wrote: It's a lower-case 'c'. Sorry - I typed it out by hand as the build is on a different machine. Could you check the following things: - ghc/driver/package.conf: is it empty? Does it contain reasonable-looking package entries? It is not

RE: Strange Building problem...

2003-08-01 Thread Simon Marlow
It's a lower-case 'c'. Sorry - I typed it out by hand as the build is on a different machine. Could you check the following things: - ghc/driver/package.conf: is it empty? Does it contain reasonable-looking package entries? It is not empty and the entries look reasonable.

Re: Strange Building problem...

2003-08-01 Thread Mark Green
On Fri, 1 Aug 2003 12:51:21 +0100, you wrote: It is not empty and the entries look reasonable. - Is there a discrepancy between leading underscores on the symbols in libHSbase.a and the missing symbols? No; neither have any leading underscores. Can you compile a small hello

RE: Strange Building problem...

2003-08-01 Thread Simon Marlow
On Fri, 1 Aug 2003 12:51:21 +0100, you wrote: It is not empty and the entries look reasonable. - Is there a discrepancy between leading underscores on the symbols in libHSbase.a and the missing symbols? No; neither have any leading underscores. Can you compile a small

Use of H98 FFI

2003-08-01 Thread Peter Thiemann
I recently had my first exposure to Haskell's FFI when I was trying to compute MD5 and SHA1 hashes using the existing C implementations. In each case, the idea is to make the hash function available as function md5 :: String - String However, the naive implementation md5_init md5_state

Re: Use of H98 FFI

2003-08-01 Thread Sven Panne
Peter Thiemann wrote: md5 :: String - String Hmmm, this should probably be: md5 :: [Word8] - [Word8] unless you really want the MD5 of the Unicode characters... Cheers, S. ___ Haskell mailing list [EMAIL PROTECTED]

Re: Use of H98 FFI

2003-08-01 Thread Derek Elkins
On 01 Aug 2003 09:44:14 +0200 Peter Thiemann [EMAIL PROTECTED] wrote: I recently had my first exposure to Haskell's FFI when I was trying to compute MD5 and SHA1 hashes using the existing C implementations. In each case, the idea is to make the hash function available as function md5 ::

Re: *safe* coerce, for regular and existential types

2003-08-01 Thread Ralf Laemmel
[EMAIL PROTECTED] wrote: ... loads of cunning stuff omitted Software-engineering-wise your approach suffers from an important weakness: a closed world assumption. The programmer has to maintain your TI and pass it on in all kinds of contexts for the array of types to be handled. I also had a

Re: a breaking monad

2003-08-01 Thread Tomasz Zielonka
On Thu, Jul 31, 2003 at 05:15:33PM -0400, Derek Elkins wrote: On Thu, 31 Jul 2003 13:18:40 -0700 Hal Daume [EMAIL PROTECTED] wrote: so, my questions are: does this exist in some other form I'm not aware of? is there something fundamentally broken about this (sorry for the pun)? any

Re: a breaking monad

2003-08-01 Thread Derek Elkins
On Fri, 1 Aug 2003 12:02:00 +0200 Tomasz Zielonka [EMAIL PROTECTED] wrote: On Thu, Jul 31, 2003 at 05:15:33PM -0400, Derek Elkins wrote: On Thu, 31 Jul 2003 13:18:40 -0700 Hal Daume [EMAIL PROTECTED] wrote: so, my questions are: does this exist in some other form I'm not aware of?

ANN: H98 FFI Addendum 1.0, Release Candidate 12

2003-08-01 Thread Manuel M T Chakravarty
Dear Haskell Folks, Release Candidate 12 of the H98 FFI Addendum 1.0 is now available from http://www.cse.unsw.edu.au/~chak/haskell/ffi/ Since the release of RC 11 (12 June), there was only one small change (which was already under discussion before RC 11 was published). Hence, I consider

Submission deadline SNPD03 approaching

2003-08-01 Thread Annette Stümpel
== CALL FOR PAPERS Fourth International Conference on Software Engineering, Artificial Intelligence, Networking, and Parallel/Distributed Computing (SNPD03) October 16-18, 2003 Luebeck, Germany

CSMR 2004 - CALL FOR PAPERS

2003-08-01 Thread csmr2004
8th European Conference on Software Maintenance and Reengineering March 24 - 26, 2004 Tampere, Finland Call for Papers The European Conference on Software Maintenance is the premier European conference on the theory and practice of evolution, maintenance and reengineering of software

Re: Libraries and hierarchies

2003-08-01 Thread John Meacham
confluence! Inspired by some posts the other day I implemented an immutable GUID naming scheme for interfaces with Haskell. I thought it would require compiler support, but it turns out a good 90% solution can be done as a separate program quite nicely and there are not too tough workarounds for

Re: Use of H98 FFI

2003-08-01 Thread Peter Thiemann
Derek == Derek Elkins [EMAIL PROTECTED] writes: Derek Derek Except that I would probably mapM_ over a list of chunks, I don't Derek see what the problem is with your second version of the code is. The second version allocates memory like crazy, so much that the pokeByteOff and

Re: Libraries and hierarchies

2003-08-01 Thread Keith Wansbrough
[stuff about GUIDs] Careful! There are two things one might tie GUIDs to. You could compute a hash of (or associate a GUID with) the *interface*, or the *implementation*. These are different things. Until we know which we want, we should support both. Why? One might reasonably say this

Re: Libraries and hierarchies

2003-08-01 Thread John Meacham
On Fri, Aug 01, 2003 at 05:00:55PM +0100, Keith Wansbrough wrote: [stuff about GUIDs] Careful! There are two things one might tie GUIDs to. You could compute a hash of (or associate a GUID with) the *interface*, or the *implementation*. These are different things. Until we know which

Re: *safe* coerce, for regular and existential types

2003-08-01 Thread Wang Meng
I admire the elegancy of your code which makes the changes to add new data types minimum. There is one question I want to ask: Does this technique extend to polymophic types? Let's say we have the following type: data D a = C | D a Is it possible to index the type D a? Or there is some

*safe* coerce: four methods compared

2003-08-01 Thread oleg
This is a Related Work section of the previous message. We compare three main methods of achieving safe casts. It seems that the method proposed in the earlier message is quite different -- especially in terms of extensibility. In this message, we compare the extensibility of four techniques.

FTP, XMLRPC libraries?

2003-08-01 Thread Bryn Keller
Hi folks, I'm looking for FTP (client) and XMLRPC (client) libraries for Haskell. Does anyone know of any, or do I need to roll my own? Thanks, Bryn ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: a breaking monad (to haskell cafe)

2003-08-01 Thread Iavor Diatchki
hi, Derek Elkins wrote: Anyways, most of my uses of the Cont monad have been for my own personal entertainment, and usually I break the abstraction (using Control.Monad.Cont) to do the things I want. I don't know if I've ever written something that's used callCC that I kept. except for