Parser panic: Non-exhaustive patterns in case

2001-10-10 Thread Jan de Wit
Hello, In GHC 5.02 on Sun Solaris (binary package), running 'ghc-5.02 -c -fglasgow-exts Test.hs' and Test.hs containing the following code: module Test where bimapGRose __ff __a = ((to ((bimapEP epGRose) epGRose)) ((bimapGRose__ __ff) __a)) Gives the following panic message: | ghc-5.02:

Re: Ptr and ForeignPtr Questions

2001-10-10 Thread Ashley Yakeley
At 2001-10-10 01:19, I wrote: foreign import foo raw_foo :: Ptr () - IO (Ptr ()); foo :: Ptr SomeLinkedList - IO (ConstPtr Char); foo = importFunction raw_foo; Actually I don't need to convert the pointers, do I? If I have (Storable SomeLinkedList), I can just declare foreign

No type lib generated by hdirect

2001-10-10 Thread Lehti, Patrick
I am trying to build a Haskell COM component with HDirect (from http://www.galconn.com/~sof/hdirect-0.18-src.tar.gz) and ghc 5.02. I have problems generating the type library: it is simply not created. Even the comserv example is not working because of the same problem. Could that be a bug in

posix library for Windows?

2001-10-10 Thread Dean Herington
Is the posix library (-package posix) supposed to be supported on Windows? If not (as I expect to have confirmed), what are the alternatives for process control on Windows? Dean ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

Re: No type lib generated by hdirect

2001-10-10 Thread Mike Thomas
Hi Patrick. This is probably because you need to build HDirect in two stages - once without typelibrary support, and once with. Here is the process I used to build HDirect 0.17 with ghc 4.08 under NT (much is probably irrelevant as I think some of these problems have been sorted by Sigbjorne):

hGetContents bug?

2001-10-10 Thread Andre W B Furtado
If I open a file using openFile from the IO module (x - openFile foo.txt ReadMode) and convert it to a String via hGetContents (y - hGetContents x) and finally try to print the file on the screen (putStrLn y) I'll get a strange result if the file contains the character 1A-hexadecimal (or

Harmful spammers

2001-10-10 Thread Jerzy Karczmarczuk
Sorry for the pollution. Is there a way to kill the guys from: @bid4placement.com ? They managed already 3 times to block my mailer with their HTML, via Haskell list. Jerzy Karczmarczuk Caen, France ___ Haskell mailing list [EMAIL PROTECTED]

Re: Monomorphism, monomorphism...

2001-10-10 Thread Marcin 'Qrczak' Kowalczyk
09 Oct 2001 13:55:04 -0700, Carl R. Witty [EMAIL PROTECTED] pisze: The TREX paper from Mark Jones and Benedict Gaster (I hope I have the names right) had both extensible records and extensible variants (extensible variants being what you would need to implement downcasts), I don't think so.

Re: Unicode support

2001-10-10 Thread Marcin 'Qrczak' Kowalczyk
Tue, 9 Oct 2001 14:59:09 -0700, John Meacham [EMAIL PROTECTED] pisze: I think a cannonical way to get at iconvs ('man 3 iconv' for info.) functionality in one of the standard librarys would be great. perhaps I will have a go at it. even if the underlying platform does not have iconv then

Namespaces (was Re: GUI Library Task Force)

2001-10-10 Thread Hal Daume III
I think one important aspect of Java's java.foo.bar style has been overlooked: the semantics. sure, syntactivally, java.foo.bar and java_foo_bar; they're basically the same. the big issue (to me, at least) is that the Java compiler knows how to interpret the .s and will use them to navigate

Re: Namespaces (was Re: GUI Library Task Force)

2001-10-10 Thread Mark Carroll
On Wed, 10 Oct 2001, Hal Daume III wrote: (snip) least) is that the Java compiler knows how to interpret the .s and will use them to navigate directory structure. (snip) Yes, that's certainly an interesting idea. I'd like to fall short of mandating anything about location of source files in

Re: Monomorphism, monomorphism...

2001-10-10 Thread Carl R. Witty
Marcin 'Qrczak' Kowalczyk [EMAIL PROTECTED] writes: 09 Oct 2001 13:55:04 -0700, Carl R. Witty [EMAIL PROTECTED] pisze: The TREX paper from Mark Jones and Benedict Gaster (I hope I have the names right) had both extensible records and extensible variants (extensible variants being what

Re: Namespaces (was Re: GUI Library Task Force)

2001-10-10 Thread Hal Daume III
So, barring this, I'm curious how other people handle this issue. I have multiple projects. Call them A, B, C. They are in directories: ~/projects/A ~/projects/B ~/projects/C repsectively. Say I'm creating a new project, D, in ~/projects/D that uses code that I've written in packages A,

Re: Haskell and principal types

2001-10-10 Thread Karl-Filip Faxen
Oops! I said THIH has problems with type synonyms. That is completely wrong. I meant type SIGNATURES and nothing else. Sorry for the confusion. /kff ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: Harmful spammers

2001-10-10 Thread jefu
There are a couple things to do that can at least cut down on spam. 1) Make sure that your mail gateway, or (in this case) the mailing list host is not an open relay site. Check http://www.mail-abuse.net/ and especially http://www.mail-abuse.net/rss/ for more information.

Re: Monomorphism, monomorphism...

2001-10-10 Thread Ashley Yakeley
At 2001-10-10 03:59, Marcin 'Qrczak' Kowalczyk wrote: We need some type T such that it's possible to define a family of functions for arbitrary choices of A: upA :: A - T downA :: T - Maybe A satisfying downA (upA a) = Just a. We want to choose the type for T before deciding the exact

Re: Namespaces (was Re: GUI Library Task Force)

2001-10-10 Thread John Meacham
On Wed, Oct 10, 2001 at 03:29:03PM -0400, Hal Daume III wrote: So, barring this, I'm curious how other people handle this issue. I have multiple projects. Call them A, B, C. They are in directories: ~/projects/A ~/projects/B ~/projects/C repsectively. Say I'm creating a new

Re: Namespaces

2001-10-10 Thread Johan Nordlander
On Wednesday, October 10, 2001, at 12:29 PM, Hal Daume III wrote: So, barring this, I'm curious how other people handle this issue. I have multiple projects. Call them A, B, C. They are in directories: ~/projects/A ~/projects/B ~/projects/C repsectively. Say I'm creating a new

Re: Namespaces

2001-10-10 Thread Hal Daume III
On Wed, 10 Oct 2001, Johan Nordlander wrote: Using the new hirarchical module namespace soon to be supported by both Hugs and GHC: Set the search path to ~/projects and import A.M, B.N, etc. The only additional requirement here is that your module M in A must be renamed A.M, and so

Re: Harmful spammers

2001-10-10 Thread Ketil Malde
jefu [EMAIL PROTECTED] writes: 2) Every time you get spam, locate all the hosts it came through in the header. Check both hostnames and ip addresses as one of the common spammer techniques is to give a different hostname than the ip address maps to. Note that spammers add dummy

Re: = vs -

2001-10-10 Thread D. Tweed
On 10 Oct 2001, Ketil Malde wrote: Mark Carroll [EMAIL PROTECTED] writes: On Tue, 9 Oct 2001, Ashley Yakeley wrote: At 2001-10-09 11:55, Mark Carroll wrote: What is the rationale for when Haskell demands a = and when it demands a -? Okay, I can't give you anything formal, but

Re: = vs -

2001-10-10 Thread D. Tweed
On Wed, 10 Oct 2001, D. Tweed wrote: degenerate equality you get from defining the lhs in terms of the rhs. The - is used whenever you've got something on the right that `leads to' to ^left something on the left, eg

Re: Reasons behind the one instance per type limitation

2001-10-10 Thread Diego Dainese
On Wed, 10 Oct 2001 11:20:43 +1300 Brian Boutel [EMAIL PROTECTED] wrote: Iavor S. Diatchki wrote: hello, Why aren't instance declarations handled by the module system like every other symbol, so that a module can decide when to import an instance declaration and when to export

Re: = vs -

2001-10-10 Thread D. Tweed
On Wed, 10 Oct 2001, Mark Carroll wrote: On 10 Oct 2001, Ketil Malde wrote: (snip) function definitions. Perhaps one could have had a syntax like z a = | a == 1 - 1 | a == 2 - 3 instead, as it'd make it more consisten with the case, but I suppose