RE: -xc and stack overflow

2002-09-24 Thread Simon Marlow
I'm suffering stack overflow in a program that uses both multiple processes and multiple threads. Can anyone help me interpret the following -xc output? In particular, which ... reports relate to the stack overflow? (I've added a newline following each '' to increase readability.) I

Re: Newbie building GHC

2002-09-24 Thread Saswat Anand
I ran strace with -ff option. Attached is the trace file. I can see many No such file or directory in the trace. Can you see the problem? Thanks Saswat g Description: Binary data

RE: Newbie building GHC

2002-09-24 Thread Simon Peyton-Jones
| - Run the following following commands: | | export PATH=/cygdrive/c/lang/mingw32/bin::${PATH} | | make clean; ./configure --build=mingw configure.log Uh oh. You aren't following the instructions in Section 12.4 of the GHC building guide!

RE: Newbie building GHC

2002-09-24 Thread Simon Peyton-Jones
| make clean; ./configure --build=mingw configure.log PS: I should have said * Before autoconf, mv ./configure configure-save. (It's not writable so autoconf fails otherwise.) * rm config.cache (maybe it's remembering out of date info) ___

RE: ghc-inplace exiting with error 1 foolishness

2002-09-24 Thread Simon Peyton-Jones
| I tried again on a clean machine, this time remembering to replace | Cygwin's sh.exe with bash.exe, and mounting C:\mingw as /mingw and | C:\mingw\include as /mingw/mingw32/include. You should not need the latter two step, if you use the --with-gcc option to configure, as the building guide

RE: unsafePerformIO

2002-09-24 Thread Simon Peyton-Jones
The actions performed by unsafePerformIO are simply done at some entirely unpredictable time, perhaps interleaved with actions on the main execution path. The formal semantics in the notes doesn't have a good way to express that because the purely-functional part is given a denotational

RE: unsafePerformIO

2002-09-24 Thread Koen Claessen
Simon Peyton-Jones wrote: | The actions performed by unsafePerformIO are simply | done at some entirely unpredictable time, perhaps | interleaved with actions on the main execution path. But it is a fact that many of us have at least some idea of what happens under the hood when we use

ghci takes all available CPU time

2002-09-24 Thread Niklas Sörensson
Hi, On our system (Solaris) the interpreter takes all available CPU time just waiting for input. The problem seems to be restricted to our site and to the latest release of ghc (5.04). We really need to fix this problem since many of us are using SunRays with a shared server. Any idea of what

Re: Newbie building GHC

2002-09-24 Thread Mike Thomas
Hi Simon. You're the victim of my first sentence which was obfuscated by simultaneous attempts at humour and a bad memory disclaimer - sorry - my wife always tells me not to make up my own jokes! (Oops.) To build yesterday's CVS HEAD (previously autoconfed) using Windows 2000, GHC 5.04.1, and

RE: ghci takes all available CPU time

2002-09-24 Thread Simon Marlow
On our system (Solaris) the interpreter takes all available CPU time just waiting for input. The problem seems to be restricted to our site and to the latest release of ghc (5.04). We really need to fix this problem since many of us are using SunRays with a shared server. Any idea of

RE: Newbie building GHC

2002-09-24 Thread Simon Marlow
I ran strace with -ff option. Attached is the trace file. I can see many No such file or directory in the trace. Can you see the problem? Here's the problem line: [pid 1514] execve(n/sh, [/bin/sh, -c, gcc Adjustor.c -o /tmp/ghc1513.s...], [/* 36 vars */]) = -1 ENOENT (No such file or

RE: unsafePerformIO

2002-09-24 Thread Simon Marlow
But it is a fact that many of us have at least some idea of what happens under the hood when we use unsafePerformIO. This is also described in your paper Stretching the storage manager: weak pointers and stable names in Haskell. However, I for example have no idea what happens when

RE: Dynamic/runtime loading with GHC

2002-09-24 Thread Simon Peyton-Jones
Great! Simon M is going to take a look when he has a moment. Meanwhile I'd like to encourage those of you who are keen on this stuff [Duncan, Andre?] to write up (a) how to use it (in SGML, to add to the user manual); see fptools/ghc/docs/using (b) how it is

Re: Newbie building GHC

2002-09-24 Thread Mike Thomas
Actually... I said in my previous reply: Having said that, specifying the C compiler by your method is better as you never know when a shell script or tool might temporarily modify the path. (sh and /etc/profile being a known candidate for doing this behind your back). In retrospect I

RE: Newbie building GHC

2002-09-24 Thread Simon Peyton-Jones
| In retrospect I think that unless configure is doing something really | tricky, if you want the Mingw32 ar and ld to be picked up instead of the | Cygwin equivalents then you must have the Mingw32 bin directory in your path | ahead of the Cygwin bin directory. The right thing to do is what the

RE: Newbie building GHC

2002-09-24 Thread Simon Marlow
| In retrospect I think that unless configure is doing something really | tricky, if you want the Mingw32 ar and ld to be picked up instead of the | Cygwin equivalents then you must have the Mingw32 bin directory in your path | ahead of the Cygwin bin directory. The right thing to do

Re: ghc-inplace exiting with error 1 foolishness

2002-09-24 Thread Sigbjorn Finne
Dominic Cooney [EMAIL PROTECTED] writes: I complained late last week that GHC failed to build because ghc-inplace couldn't do anything more complicated than print its version number. I tried again on a clean machine, this time remembering to replace Cygwin's sh.exe with bash.exe, and

RE: unsafePerformIO

2002-09-24 Thread Simon Peyton-Jones
Koen Based on this info, how would you like to write the notes you would like to see on unsafePerformIO? The starting point is at http://haskell.cs.yale.edu/ghc/docs/latest/html/base/GHC.IOBase.html#uns afePerformIO If you write the notes, we'll check their veracity and add them. We'll do the

Re: unsafePerformIO

2002-09-24 Thread Alastair Reid
Koen Claessen [EMAIL PROTECTED] writes: However, I for example have no idea what happens when unsafely executing something that throws exceptions, performs a forkIO, something that uses MVar's, etc. I won't dare to try to characterize the difference exactly but you should expect very

Chipworks Inside Technology - New Circuit Analysis Reports

2002-09-24 Thread Info
Title: Chipworks Inside Technology Be competitive, rank your technology, and see what the competition is doing in the following just released circuit analysis reports and publications.

Re: Newbie building GHC

2002-09-24 Thread Mike Thomas
Hi again. Thanks for the feedback. The only way I know to make all this work is to use a straightforward Cygwin environment for building (with absolutely no mingw stuff in your path) and use --with-gcc in your configure line. Other things may work, but you're on your own. I think

specifying the name of the executable under Windows

2002-09-24 Thread Wolfgang Jeltsch
Hi, if I enter ghc -o foo foo.hs under Windows, is the resulting executable named foo or foo.exe? (Please send replies not only to the list as I'm not subscribed to it.) Wolfgang ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

Kanser Tedavisi

2002-09-24 Thread carctol
charset=US-ASCII; charset=US-ASCII; charset=US-ASCII; charset=US-ASCII; charset=US-ASCII Reply-To: [EMAIL PROTECTED] Date: Wed, 25 Sep 2002 01:19:00 +0300 X-Priority: 3 X-Library: Indy 9.00.10 X-Mailer: Foxmail Kemoterapinin yan etkileri nedeniyle yorgun ve bitkin

RE: Haskell 98: Behaviour of hClose

2002-09-24 Thread Simon Peyton-Jones
On the matter of echoing, in Section 7.1 there seem to be two possibilities: 1. Delete the sentence By default, these input functions echo to standard output. altogether. 2. Replace the sentence by If the standard input (stdin) is a terminal device, any input on stdin is

RE: Haskell 98: Behaviour of hClose

2002-09-24 Thread Simon Peyton-Jones
Glynn writes: | 2. Regarding the buffering issue, I suggest adding something along the | lines of the following to section 11.4.2 of the library report: | | For a stream which is associated with a terminal device, setting the | mode to no-buffering will also disable any line-buffering which

Re: Problems with IO

2002-09-24 Thread Ch. A. Herrmann
Hi Pavel, pavel == pavel [EMAIL PROTECTED] writes: pavel I'm having a problem with writing a function dealing with pavel I/O. Maybe it's just a lack of experience or simple Haskell pavel knowledge because I'm just a beginer. The problem: I want to pavel write a function that

EACL03: Last Call for Workshop Proposals

2002-09-24 Thread Steven Krauwer
EACL-03: LAST CALL FOR WORKSHOP PROPOSALS Proposal submission deadline: October 1, 2002 The EACL-03 Organizing Committee invites proposals for workshops to be held at EACL-03. EACL-03 will take place in Budapest, Hungary, April

report definition of field names

2002-09-24 Thread Hal Daume III
Hi All, I was just reading the report and was confused by something. In section 3.15 Datatype with Field Labels, it says: A datatype declaration may optionally include field labels for some or all of the components of the type. This seems to say that if you have some datatype declaration, you

empty field label constructor infelicity

2002-09-24 Thread Hal Daume III
Hi again, The report says The expression F {}, where F is a data constructor, is legal whether or not F was declared with record syntax, provided F has no strict fields: it denotes F _|_1 ... _|_n where n is the arity of F. It unclear to me why there needs to be this provision for records with

Problems with IO

2002-09-24 Thread
I'm having a problem with writing a function dealing with I/O. Maybe it's just a lack of experience or simple Haskell knowledge because I'm just a beginer. The problem: I want to write a function that converts an IO String into String lala :: IO String - String Is it possible? If yes, how? --

Re: Problems with IO

2002-09-24 Thread Glynn Clements
Zhbanov Pavel wrote: Now I understand that it's just a lack of knowledge... Sorry for interrupring... By the way, can you recommend a good manual which I can find on the web? Tutorial: http://www.haskell.org/tutorial/ Reference Manual: http://www.haskell.org/definition/

Re: Problems with IO

2002-09-24 Thread ?????? ????? ???????????
My task is to write a parser for some language (TSG). I'm using an UU_Parsing library. I wrote that parser even tested it by using some example provided, but I have problems with using my parser. I wrote a function: test :: [Char] - IO () test inp = do res - parseIO pTSG inp

Re: Problems with IO

2002-09-24 Thread Ch. A. Herrmann
Hi Pavel, pavel == pavel [EMAIL PROTECTED] writes: pavel My task is to write a parser for some language (TSG). pavel ... pavel Why should I use that do thing? What is so magical in it? pavel PS: Please, don't say that I'm stupid, I just have problem pavel with

Re: Monad Maybe?

2002-09-24 Thread Alastair Reid
Hal Daume [EMAIL PROTECTED] writes: I know this has been written about way too much, but I was wondering what people thought about using 'liftM f' as opposed to '= return . f'. I would probably have written Andrew's code using liftM, but I don't know if one is necessarily better than the