RE: floating point literals

2003-03-19 Thread Simon Marlow
Simon Marlow wrote: On Mon, Mar 17, 2003 at 10:33:47AM +, Ross Paterson wrote: GHC doesn't recognize literals like 9e2, and nor does lex. Correction: GHC doesn't recognize 9e2 lex is confused by 0xy, 0oy, 9e+y and 9.0e+y Fixed GHC, I'll leave lex to someone more

Re: building 5.04.3 on sparc-solaris-2.6

2003-03-19 Thread Malcolm Wallace
I'm trying to build ghc-5.04.3 from source on a sparc-solaris-2.6 machine, using 5.02.3. It throws up the following build error. Any ideas what might be going wrong? /tmp/ghc11170.hc: In function `SystemziTime_zdLrpHVeta_entry': /tmp/ghc11170.hc:10508: called object is not a function If it

RE: building 5.04.3 on sparc-solaris-2.6

2003-03-19 Thread Simon Marlow
I'm trying to build ghc-5.04.3 from source on a sparc-solaris-2.6 machine, using 5.02.3. It throws up the following build error. Any ideas what might be going wrong? /tmp/ghc11170.hc: In function `SystemziTime_zdLrpHVeta_entry': /tmp/ghc11170.hc:10508: called object is not a function

Re: building 5.04.3 on sparc-solaris-2.6

2003-03-19 Thread Malcolm Wallace
_ccall_result = (timezone()); /* line 10508 */ What does mk/config.h say about HAVE_ALTZONE? On a Solaris 8 box I'm looking at it says HAVE_ALTZONE is defined. $ grep ZONE mk/config.h /* #undef HAVE_ALTZONE */ /* #undef HAVE_TIMEZONE */ #define TYPE_TIMEZONE

Re: building 5.04.3 on sparc-solaris-2.6

2003-03-19 Thread Michael Weber
* Malcolm Wallace [EMAIL PROTECTED] [2003-03-19T14:33+]: Anyway, I changed mk/config.h to add #define HAVE_ALTZONE #define HAVE_TIMEZONE and received the same error. I will now `make clean' and rebuild from scratch, to see if it makes any difference. You may have to copy (and

RE: trouble linking with -O and unboxed tuple

2003-03-19 Thread Simon Marlow
With ghc 5.04.2 I'm having some trouble linking (debian linux). Here's the error I get: /home/bjpop/woo/lib/buddha-0.5/libbuddha_p.a(Partial.o): In function `s1jZ_fast1': Partial.o(.text+0xa44): undefined reference to `GHCziPrim_zdwZ2H_entry' Ok, could you help us out by

Type Inference Infelicity

2003-03-19 Thread Ashley Yakeley
This should compile, shouldn't it? -- ghc -c -fglasgow-exts TestInfer.hs module TestInfer where { class C t a b | t a - b; instance C Char a Bool; data P t a = forall b. (C t a b) = MkP b; data Q t = MkQ (forall a. P t a); f' :: Q Char; f' = MkQ (MkP True ::

RE: fun with sockets (ghc-5.04.1)

2003-03-19 Thread Simon Marlow
Peter, [...] After processing a random number of connections, the server dies with Fail: invalid argument Action: accept Reason: Invalid argument [...] I don't know what's wrong, I'm afraid. Any chance you could supply us with a working example that demonstrates the bug? Cheers,

RE: How do I profile Prelude functions?

2003-03-19 Thread Simon Marlow
Alistair, I can't find advice in the GHC manual on determining how much time your program spends in Prelude functions. I've discovered that I can alias a Prelude function e.g. import Data.Set myMkSet = mkSet ... which will give me a cost-centre for mkMySet. Isn't there

Re: fun with sockets (ghc-5.04.1)

2003-03-19 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: After processing a random number of connections, the server dies with Fail: invalid argument Action: accept Reason: Invalid argument [...] I don't know what's wrong, I'm afraid. Any chance you could supply us with a working example that

Re: Class or parameterized type?

2003-03-19 Thread Graham Klyne
At 18:42 18/03/2003 -0800, [EMAIL PROTECTED] wrote: Example: I wish to define a structured container type, let's call it a RatsNest, that is type-variable in two ways: [...] Do you consider the standard design lacking? For example, I wasn't aware there was a standard design, but you have given

flock and sockets

2003-03-19 Thread Daniel Luna
I am planning a Haskell project and I need to access files. Since the program will be automatically started whenever a mail comes in I will need to be able to lock the access to files. Is there any support for this in some library? The second option that I have is to use a daemon and let the

RE: recursive modules in Haskell

2003-03-19 Thread Elke Kasimir
On 17-Mar-2003 Simon Peyton-Jones wrote: | there is no need to use such hacks. it is not dificult to add suport | for mutually recursive modules to an implementation directly. | unfortunatley none of the working haskell implementations support | recursive modules, Simple in principle, not

Re: recursive modules in Haskell

2003-03-19 Thread Alastair Reid
Simon Peyton-Jones [EMAIL PROTECTED] writes: Nothing deep. GHC is just a fairly big thing and one of its assumptions is that it is compiling one module at a time. There'd be quite a bit of chuffing around to remove this assumption. Nothing fundamental, but real work. The other big problem

RE: flock and sockets

2003-03-19 Thread Simon Marlow
I am planning a Haskell project and I need to access files. Since the program will be automatically started whenever a mail comes in I will need to be able to lock the access to files. Is there any support for this in some library? Yes, the Posix library distributed with GHC has support

Re: recursive modules in Haskell

2003-03-19 Thread Iavor S. Diatchki
hi, Alastair Reid wrote: Simon Peyton-Jones [EMAIL PROTECTED] writes: Nothing deep. GHC is just a fairly big thing and one of its assumptions is that it is compiling one module at a time. There'd be quite a bit of chuffing around to remove this assumption. Nothing fundamental, but real work.

History of Haskell, first draft

2003-03-19 Thread Steffen Mazanek
Hello, a first draft of my little Haskell-history collection is online now: http://pseiko.gmxhome.de/pseiko/Haskell-History.html Please note, that one part is still just copied from http://www.idt.mdh.se/kurser/cd5100/ht02/history.html but I hope it will evolve quickly. Moreover some parts