AbsCStixGen.gencode panic

2001-11-16 Thread Volker Stolz
Beware, to reproduce you need c2hs gtk+hs! Luckily, I can use the -O switch (does that option mean turn errors OFF?) to get a perfectly working binary! ghc -c Get.lhs -o Get.o `c2hs-config --cflags` -fglasgow-exts -package lang ghc-5.02.1: panic! (the `impossible' happened, GHC version

Re: AbsCStixGen.gencode panic

2001-11-16 Thread Sigbjorn Finne
The native code generator only handles 'foreign import's with a static target, which is why you're seeing this (HEAD handles this situation a little bit more gracefully). Use -fvia-C (or -O, which implicitly does the same thing). --sigbjorn - Original Message - From: Volker Stolz

Re: HDirect (CVS version) - some bugs

2001-11-16 Thread Sigbjorn Finne
Thanks for the bug report. I've checked in a fix for 1), but for 2), I suggest instead of doing void pj_set_finder( const char *(*)(const char *) ); you express this as typedef [string]char* (*StringTrans) ([in,string]char* arg1); void pj_set_finder([in]StringTrans arg); as HDirect

ghc-5.02 refuses to open a device file

2001-11-16 Thread Max A . K .
I guess it's a [mis]feature, since 5.00 worked, but can hardly imagine anybody could need it. === Prelude h-IO.openFile /dev/zero IO.ReadMode *** Exception: unsupported operation Action: openFile Reason: unknown file type File: /dev/rtf0 Prelude Leaving GHCi. max@max$cat /dev/zero C-C

Re: What are ZMZN and -Z1T in a ghc space profile?

2001-11-16 Thread Robert Ennals
I searched on google, but had no luck. My program is an implementation of http://www-aig.jpl.nasa.gov/public/home/gat/lisp-study.html in haskell, and the dictionary read in is rather large (900Kb) so I assume most of the space should be [[Char]] Zxxx is the way GHC encodes operator names

CFP: EuroPar 20002

2001-11-16 Thread Kevin Hammond
[Apologies for any duplication. Please can you distribute to those who might be interested... I am global chair of topic 10, Parallel Programming: Models, Methods and Programming Languages, and would welcome submissions from the Haskell community. Kevin] * Euro-Par 2002 -

Re: What are ZMZN and -Z1T in a ghc space profile?

2001-11-16 Thread Keith Wansbrough
But, to answer your emmediate question: ZMZM = [] - The list Nil constructor Z1T = ( ) - The 1-tuple constructor IIRC, the 1 is the number of commas, so Z1T is the *pair* constructor. --KW 8-) -- Keith Wansbrough [EMAIL PROTECTED] http://www.cl.cam.ac.uk/users/kw217/ University of

GHC installation

2001-11-16 Thread Jerzy Karczmarczuk
I might be dead wrong, in that case I apologize... I just took the Windows installer and tried to put GHC etc. on my laptop. I suspect that the installer absolutely wants to put the stuff in Program Files and doesn't give the user the opportunity to install it on another disk. Anyway, I have

Re: What are ZMZN and -Z1T in a ghc space profile?

2001-11-16 Thread Robert Ennals
But, to answer your emmediate question: ZMZM = [] - The list Nil constructor Z1T = ( ) - The 1-tuple constructor IIRC, the 1 is the number of commas, so Z1T is the *pair* constructor. The comments in OccName.lhs say: [copying direct from the file] Before

RE: What are ZMZN and -Z1T in a ghc space profile?

2001-11-16 Thread Julian Seward (Intl Vendor)
I suspect you're both right. I seem to remember that it used to be the way Keith says, but was relatively recently changed to be the way Robert says. J | But, to answer your emmediate question: | | ZMZM = [] - The list Nil constructor | Z1T = ( ) - The 1-tuple constructor | |

RE: how strict is Array.array?

2001-11-16 Thread Simon Peyton-Jones
Well, it's clearly a design choice. But in general laziness does not come for free. The choice made by the Haskell designers was that the 'array' function can consume and explore all its input before producing any result. It just give more scope to the implementor. Nothing too deep. Simon

RE: GHC installation

2001-11-16 Thread Simon Peyton-Jones
You don't say which version of GHC... GHC 5.02.1 (which I advise you to use) installs in c:/ghc/ghc-5.02.1 The installer doesn't give you a way to change this. (It should, but we havn't found out how yet.) But once you have put it there you can move it if you want. (Best to mail

How do I write the type of 'inverse'?

2001-11-16 Thread marku
I have a class whose instances can extract a field of type a. Is there a way of referring to that type 'a' in the signatures of functions that use the class? Sigh! That wasn't very clear. I'll try explaining via example: I am trying to define a `Pairable' class, which is an abstraction of

Re: How do I write the type of 'inverse'?

2001-11-16 Thread John Hughes
I'll try explaining via example: I am trying to define a `Pairable' class, which is an abstraction of all kinds of pairs: (a,b), Pair a b, etc. class Ord p = Pairable p where is_pair :: p - Bool pair_fst :: Ord a = p - a

not naming modules Main

2001-11-16 Thread Hal Daume
I'm really frustrated that modules that you want to compile to executables have to be named Main. I often have a module with a main method that I use for testing or whatever (perhaps I want the gained speed of an executable) but is, for the most part, a module I import into others. I end up

Re: not naming modules Main

2001-11-16 Thread Iavor S. Diatchki
hi, the haskell report says that a program should contain a module called Main, which should export a function called main of type IO(). there is no requiremnt however that the function main is defined in the module Main, it could for example be imported from somewhere. so in your situation

Re: not naming modules Main

2001-11-16 Thread Mark Carroll
On Fri, 16 Nov 2001, Iavor S. Diatchki wrote: (snip) having said all that, there seems to be a bug in ghc (or perhaps an implementation restriction), which requires that main is defined in the module Main. the only other haskell implementation i have (snip) Actually, what would be nice in

Re: How do I write the type of 'inverse'?

2001-11-16 Thread G Michael Sawka
[EMAIL PROTECTED] writes: I have a class whose instances can extract a field of type a. Is there a way of referring to that type 'a' in the signatures of functions that use the class? Sigh! That wasn't very clear. I'll try explaining via example: I am trying to define a `Pairable'

Re: not naming modules Main

2001-11-16 Thread Max A . K .
Strange, I'm not annoyed by this at all though I supposed to be. First I make module alone, and have 'module Main' and 'main' function there, then I use it in project, and change the name to whichever I want and rename or delete the 'main' function. Anyway there can be a workaround (I didn't try