RE: Instance bug

1999-08-24 Thread Simon Peyton-Jones
Got it! Very obscure but easily fixed. Amazingly, the WriteMutVar prim-op wasn't identified as having side effects. As a result GHC felt free to omit a write whose (state) result wasn't used. This meant that a write followed immediately by raising an exception was simply discarded! And that

RE: Instance declarations get lost from modules imported from abs olute paths

1999-08-24 Thread Simon Peyton-Jones
This one is my fault. I was trying to reduce the number of module dependencies that are recorded in a .hi file. There isn't much point in recording which version of which functions from the prelude you are using. So I needed to distinguish a "library" module from a "user" module. I did this

RE: NON-daemonic forking

1999-08-24 Thread Simon Marlow
I guess not. How can you define a non-daemonic forkIO in terms of a daemonic one? Both suggestions so far involve adding something extra to the end of the main thread to wait on MVars. And as a matter of fact, neither of these solutions address the problem of an exception in the main

RE: NON-daemonic forking

1999-08-24 Thread Simon Marlow
[posting to the right list... ] I guess not. How can you define a non-daemonic forkIO in terms of a daemonic one? Both suggestions so far involve adding something extra to the end of the main thread to wait on MVars. And as a matter of fact, neither of these solutions address the

Re: Licenses and Libraries

1999-08-24 Thread Manuel M. T. Chakravarty
"Daan Leijen" [EMAIL PROTECTED] wrote, Sigbjorn Finne has done a lot of work to make sure that H/Direct can handle any standard and dialect of IDL that is around, including OMG/Corba IDL's. H/Direct can generate interface code to any C library that is described with IDL (which is normally

Re: A Haskell-Shell

1999-08-24 Thread Fergus Henderson
On 21-Aug-1999, Heribert Schuetz [EMAIL PROTECTED] wrote: The appended patch to Hugs98 (to be applied in the src subdirectory) might be of some help for those who want to do shell scripting in Haskell. It modifies IO.openFile as follows: - If the name of a file opened in ReadMode ends in

Re: A Haskell-Shell

1999-08-24 Thread Hannah Schroeter
Hello! On Tue, Aug 24, 1999 at 03:41:18AM +1000, Fergus Henderson wrote: [...] This is a convenient hack, but IMHO it is not suitable for inclusion in the Haskell standard library, because it increases the risk of security holes in Haskell applications. I agree. I don't like that similar

Re: Licenses and Libraries

1999-08-24 Thread Sven Panne
Erik Meijer wrote: [...] I think that this really depends in which world you live. In Unix/Linux-land components are usually distributed as C source files. In Windows-land you either get a DLL or a COM component with a type library (a binary representation of its IDL description), [...] The

Re: opposite of (:)

1999-08-24 Thread xander
Hi again, With our new knowledge of snoc (thanks!) we try to build ourself one operator: (*) :: [a] - a - [a] xs * x = xs ++ [x] But, why can't I do something like this: prev (ListElem (xs*x,ys)) = ListElem (xs, x:ys) It works ok with (:) .. Regards, cees-bart breunesse xander van wiggen

Re: A Haskell-Shell

1999-08-24 Thread Heribert Schuetz
Hi, my patch for the use of `popen' is just an ad-hoc solution (aka hack) that might be useful for people trying to do some shell-scripting in hugs, before anything more fundamental becomes available. The security problem (thanks to Fergus Henderson and Carl Witty for pointing it out) must be

Re: Cpp symbols for Haskell 98

1999-08-24 Thread Malcolm Wallace
In brief: Define __HASKELL__=98 and __HASKELL98__ as preprocessor macros for all Haskell 98 compilers. I would like to hear from from maintainers of ghc, hbc and nhc if this can be accepted as a "de facto" standard. Please make the (small) change to the compiler or reply with a

RE: Cpp symbols for Haskell 98

1999-08-24 Thread Simon Marlow
In brief: Define __HASKELL__=98 and __HASKELL98__ as preprocessor macros for all Haskell 98 compilers. Ok, GHC 4.04 (in the forthcoming patchlevel 1 release) will follow suit. Cheers, Simon

Re: opposite of (:)

1999-08-24 Thread Ronald J. Legere
It WOULD be nice if you could match on functions and not just constructors. But I presume that the constructor/function dichotomy in Haskell is what allows it to be strongly typed? For example, in the untyped 'language' Mathematica employs, pattern matching is allowed on both constructors

RE: Question

1999-08-24 Thread Simon Marlow
Out of curiosity, how big is the user community? How many downloads of the software? How many are on this list? There are ~700 people on the Haskell list, ~200 on glasgow-haskell-users and ~150 on hugs-users. About 160 people downloaded ghc-4.02 for Linux last month, I'm waiting to find

Re: opposite of (:)

1999-08-24 Thread Marko Schuetz
"xander" == xander [EMAIL PROTECTED] writes: xander Hi again, xander With our new knowledge of snoc (thanks!) we try to build ourself one xander operator: xander (*) :: [a] - a - [a] xander xs * x = xs ++ [x] xander But, why can't I do something like this: xander prev (ListElem

Re: Licenses and Libraries

1999-08-24 Thread Michael T. Richter
How many times do I have to repeat that H/DIRECT IS NOT TIED TO MS OR COM, once again H/DIRECT IS NOT TIED TO MS OR COM! It would probably be more effective if you could list for us the non-MS non-COM platforms that H/Direct supports. Unless, of course, that list is empty. I was wondering

Re: opposite of (:)

1999-08-24 Thread Marcin 'Qrczak' Kowalczyk
Tue, 24 Aug 1999 09:28:51 -0700 (PDT), Ronald J. Legere [EMAIL PROTECTED] pisze: It WOULD be nice if you could match on functions and not just constructors. But I presume that the constructor/function dichotomy in Haskell is what allows it to be strongly typed? How would you define the

CORBA and COM

1999-08-24 Thread Tyson Dowd
On 23-Aug-1999, Daan Leijen [EMAIL PROTECTED] wrote: The bad thing is that Corba is not a binary protocol and thus H/Direct needs a different backend/mapping for each different Corba vendor. Many languages provide a Corba binding by providing their own Corba environment and interacting with

Haskell MIME types?

1999-08-24 Thread Fritz K Ruehr
I just convinced my local sysadmin to attach a new MIME type to outgoing Haskell programs sent by our web server, namely "application/x-haskell". He was willing to do it, but wanted me to query the Haskell community to make sure there wasn't any sort of de facto standard in use already. This

Re: Licenses and Libraries

1999-08-24 Thread Tyson Dowd
On 23-Aug-1999, Mr. Laszlo Nemeth [EMAIL PROTECTED] wrote: Paul Hudak wrote: P.S. I really like the idea someone suggested of maintaining a list of open projects, who's working on what, etc. as in the Linux community. One major difference between the Linux community and the Haskell

Re: Licenses and Libraries

1999-08-24 Thread Tyson Dowd
On 23-Aug-1999, Marcin 'Qrczak' Kowalczyk [EMAIL PROTECTED] wrote: Sun, 22 Aug 1999 00:30:29 +0200, Erik Meijer [EMAIL PROTECTED] pisze: Well, in some sense .h files are a dedicated interface language (and IDl is nothing more than a header file with some directional attributes). I