Re: loop performance bug

2005-03-15 Thread Josef Svenningsson
Hi again, A first hint is to never try to guess what kind of code ghc generates. If you're in need of performance you need to look at some lower level code. I recommend the -fext-core flag to produce external core, a sort-of-readable output of ghc's internal representation of the

Re: FW: ghc, linux

2005-03-15 Thread Yong Luo
I installed a very old version of GHC in the same laptop in 2001 and it was working well (no matter how big the program was). Now, I upgraded it to version 6.2.2, but it becomes very slow and asks more Memory or Space. I know, 64M memory is not big at all nowadays, but I don't think GHC should

RE: GPF WinXP GHCi 6.4

2005-03-15 Thread Simon Marlow
This is caused by a clash between the new Win32 package and the old win32 package. The Windows installer contains both, but unfortunately they clash on the name of the libraries. I think the new Win32 library is ready to replace the old one (Ross?). If that's the case, Sigbjorn, would you

Re: GPF WinXP GHCi 6.4

2005-03-15 Thread Ross Paterson
On Tue, Mar 15, 2005 at 10:47:07AM -, Simon Marlow wrote: This is caused by a clash between the new Win32 package and the old win32 package. The Windows installer contains both, but unfortunately they clash on the name of the libraries. I think the new Win32 library is ready to replace

RE: FW: ghc, linux

2005-03-15 Thread Simon Marlow
On 14 March 2005 16:04, Yong Luo wrote: I installed a very old version of GHC in the same laptop in 2001 and it was working well (no matter how big the program was). Now, I upgraded it to version 6.2.2, but it becomes very slow and asks more Memory or Space. I know, 64M memory is not big

RE: GPF WinXP GHCi 6.4

2005-03-15 Thread Simon Marlow
On 15 March 2005 10:58, Ross Paterson wrote: On Tue, Mar 15, 2005 at 10:47:07AM -, Simon Marlow wrote: This is caused by a clash between the new Win32 package and the old win32 package. The Windows installer contains both, but unfortunately they clash on the name of the libraries. I

Re: GPF WinXP GHCi 6.4

2005-03-15 Thread Ross Paterson
On Tue, Mar 15, 2005 at 11:37:48AM -, Simon Marlow wrote: We need a quick solution for 6.4. Should the new Win32 library be removed, and presumably HGL too? They can come back in 6.4.1 or as Cabal packages. Removing them both would be the quick solution, though HGL should be retained for

url problem, missing GLUT, and building package ghc

2005-03-15 Thread C.Reinke
perhaps some items got lost from my last mail: - url problem on http://www.haskell.org/ghc/ Mailing Lists points to non-existent http://www.haskell.org/ghc/docs/latest/html/users_guide/introduction-ghc.html#MAILING-LISTS-GHC - missing GLUT the building guide might want to mention that

RE: more GADT surprises

2005-03-15 Thread Simon Peyton-Jones
Thanks. Both this and your earlier message are fixed in the HEAD; and tests added. Keep them coming Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-bugs- | [EMAIL PROTECTED] On Behalf Of Andres Loeh | Sent: 15 March 2005 13:45 | To:

[ ghc-Bugs-1163018 ] Profiling broken under windows for ghc-6.4?

2005-03-15 Thread SourceForge.net
Bugs item #1163018, was opened at 2005-03-14 14:16 Message generated for change (Comment added) made by simonpj You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=1163018group_id=8032 Category: Profiling Group: None Status: Open Resolution: None Priority: 5

[ ghc-Bugs-1161624 ] Scoping error in lambda expressions in arrow code

2005-03-15 Thread SourceForge.net
Bugs item #1161624, was opened at 2005-03-11 20:17 Message generated for change (Comment added) made by simonpj You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=1161624group_id=8032 Category: Compiler Group: 6.2.2 Status: Closed Resolution: Fixed Priority:

Object IO problem

2005-03-15 Thread Simon Peyton-Jones
Are there any Object-IO folk out there who'd like to fix (or otherwise resolve) this sourceforge bug? https://sourceforge.net/tracker/index.php?func=detailaid=1145315group_ id=8032atid=108032 Simon Problem 1: When using the ObjectIO library, setting the view domain of a compund control does

[ ghc-Bugs-1163018 ] Profiling broken under windows for ghc-6.4?

2005-03-15 Thread SourceForge.net
Bugs item #1163018, was opened at 2005-03-14 15:16 Message generated for change (Comment added) made by andreas-haskell You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=1163018group_id=8032 Category: Profiling Group: None Status: Open Resolution: None

[ ghc-Bugs-1163018 ] Profiling broken under windows for ghc-6.4?

2005-03-15 Thread SourceForge.net
Bugs item #1163018, was opened at 2005-03-14 15:16 Message generated for change (Comment added) made by andreas-haskell You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=1163018group_id=8032 Category: Profiling Group: None Status: Open Resolution: None

[ ghc-Bugs-1145315 ] ObjectIO-Lib: Problem scrolling compund control

2005-03-15 Thread SourceForge.net
Bugs item #1145315, was opened at 2005-02-21 20:20 Message generated for change (Comment added) made by mjthomas You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=1145315group_id=8032 Category: libraries (other) Group: None Status: Open Resolution: None

RE: Object IO problem

2005-03-15 Thread Mike Thomas
Hi Simon. | Are there any Object-IO folk out there who'd like to fix (or otherwise | resolve) this sourceforge bug? | | https://sourceforge.net/tracker/index.php?func=detailaid=1145315group_ | id=8032atid=108032 I've posted a reply asking for examples and hopefully will get to the issue within

[ ghc-Bugs-1164178 ] ghci fails to start, no GHCziBase_ZC_con_info

2005-03-15 Thread SourceForge.net
Bugs item #1164178, was opened at 2005-03-15 19:23 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=1164178group_id=8032 Category: GHCi Group: None Status: Open Resolution: None

RE: [Haskell] RE: ANNOUNCE: GHC version 6.4

2005-03-15 Thread Simon Marlow
On 14 March 2005 18:08, Cale Gibbard wrote: 4. It looks like Data.FiniteMap has been renamed Data.Map, or something. There's no Data.Map at http://haskell.org/haddock/libraries/, do these need to be updated? The right place for library documentation is

RE: [Haskell] RE: ANNOUNCE: GHC version 6.4

2005-03-15 Thread Simon Marlow
On 15 March 2005 00:46, Sebastian Sylvan wrote: I'm having trouble building this. I download the source, go to my source dir and run ./configure (which seems to run to completion without problems), then I run make and get the following: ./mk/config.mk, line 554: Need an operator

How can I make a counter without Monad?

2005-03-15 Thread Nicolas Oury
Greetings, In a program, I want to give a unique name to some structures. As it is the only imperative thing I need, I don't want to use a monad. I have played with two solutions and have some questions : * unsafePerformIO : I create a counter : counter :: IORef Int counter = unsafePerformIO

ghc-pkg too happy to create ~/.ghc

2005-03-15 Thread Ian Lynagh
Hi, The Debian autobuilders don't let you write to ~ (which seems reasonable, as they are only compiling the software, not running it), so my builds are failing with -- ==fptools== /usr/bin/make boot -wr; in /build/buildd/ghc6-6.4/ghc/rts [...] ../utils/ghc-pkg/ghc-pkg-inplace --force

alpha problems with ghc 6.4

2005-03-15 Thread Ian Lynagh
Hi, An alpha build of ghc 6.4 quickly fails because of the #if alpha_TARGET_ARCH import PrimRep ( getPrimRepSize, isFloatingRep ) import Type ( typePrimRep ) #endif in ghc/compiler/typecheck/TcForeign.lhs which no longer exist. Fortunately, the imported functions aren't used either.

Re: How can I make a counter without Monad?

2005-03-15 Thread Tomasz Zielonka
On Wed, Mar 16, 2005 at 01:17:51AM +0100, Nicolas Oury wrote: Greetings, In a program, I want to give a unique name to some structures. As it is the only imperative thing I need, I don't want to use a monad. You don't want to use the IO monad. Why not use some other monad? I have played

[Haskell] Re: ANNOUNCE: GHC version 6.4

2005-03-15 Thread Wilhelm B. Kloke
Sebastian Sylvan [EMAIL PROTECTED] schrieb: I'm having trouble building this. I download the source, go to my source dir and run ./configure (which seems to run to completion without problems), then I run make and get the following: ./mk/config.mk, line 554: Need an operator

RE: [Haskell] RE: ANNOUNCE: GHC version 6.4

2005-03-15 Thread Simon Marlow
On 14 March 2005 18:08, Cale Gibbard wrote: 4. It looks like Data.FiniteMap has been renamed Data.Map, or something. There's no Data.Map at http://haskell.org/haddock/libraries/, do these need to be updated? The right place for library documentation is

[Haskell] Cfp : ICSM 2005 submission deadline extension

2005-03-15 Thread Software Maintenance
We would like to inform you that the submission deadline for research papers for ICSM 2005, the 21st IEEE International Conference on Software Maintenance has been extended from March 21, 2005 to Sunday, April 3, 2005 - 12.00 PM. This new date will be the final deadline, so submissions after

[Haskell] [ICAPS 2005] Workshop The Role of Ontologies in AI Planning and Scheduling - Extended Deadline

2005-03-15 Thread Bernd Schattenberg
ICAPS 2005 Workshop Call for Papers -- E X T E N D E D D E A D L I N E S New date for subissions: MARCH 21ST Workshop on The Role of Ontologies in AI Planning and Scheduling

[Haskell] [ICAPS 2005] Workshop Plan Execution: A Reality Check - Extended Deadline

2005-03-15 Thread icaps05
Plan Execution: A Reality Check Bridging the gap between plans and their execution. A workshop held in conjunction with The 15th International Conference on Planning and Scheduling ICAPS 2005 Monterey,

[Haskell] LPNMR'05: Submission Deadline Approaching

2005-03-15 Thread lpnmr05 . publicity
[Apologies if you receive this more than once] Call for Papers 8th International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR'05)

Re: [Haskell-cafe] invalid character encoding

2005-03-15 Thread Ross Paterson
On Mon, Mar 14, 2005 at 07:38:09PM -0600, John Goerzen wrote: I've got some gzip (and Ian Lynagh's Inflate) code that breaks under the new hugs with: handle: IO.getContents: protocol error (invalid character encoding) What is going on, and how can I fix it? A Haskell 98 Handle is a

[Haskell-cafe] Parser question

2005-03-15 Thread Nicola Whitehead
Hi folks, I have a parser problem. I have a basic calculator program (Graham Hutton's from Nottingham) which contains the following code: -- Define a parser to handle the inputexpr :: Parser Intexpr = do t - term do symbol "+" e - expr return (t + e) +++ return t term :: Parser

Re: [Haskell-cafe] Parser question

2005-03-15 Thread Henning Thielemann
On Tue, 15 Mar 2005, Nicola Whitehead wrote: Hi folks, I have a parser problem. I have a basic calculator program (Graham Hutton's from Nottingham) which contains the following code: -- Define a parser to handle the input expr :: Parser Int expr = do t - term do symbol +

Re: [Haskell-cafe] Parser question

2005-03-15 Thread Mark Carroll
On Tue, 15 Mar 2005, Nicola Whitehead wrote: (snip) term :: Parser Int term = do f - factor do symbol * e - expr return (f * t) +++ return f (snip) symbol and natural are defined elsewhere and work fine, but when I compile it I get

Re: [Haskell-cafe] Parity of the number of inversions of a permutation

2005-03-15 Thread Ben Rudiak-Gould
Henning Thielemann wrote: I' searching for a function which sorts the numbers and determines the parity of the number of inversions. I assume that there are elegant and fast algorithms for this problem (n * log n time steps), e.g. a merge sort algorithm. This is a rather nice little problem. I

Re: [Haskell-cafe] Parser question

2005-03-15 Thread Jules Bean
On 15 Mar 2005, at 12:38, Mark Carroll wrote: Variables (although why they're called that in Haskell I'm not sure) Because the value that they denote can vary between different calls of the same function? Jules ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] invalid character encoding

2005-03-15 Thread John Goerzen
On Tue, Mar 15, 2005 at 10:44:28AM +, Ross Paterson wrote: On Mon, Mar 14, 2005 at 07:38:09PM -0600, John Goerzen wrote: I've got some gzip (and Ian Lynagh's Inflate) code that breaks under the new hugs with: handle: IO.getContents: protocol error (invalid character encoding)

Re: [Haskell-cafe] invalid character encoding

2005-03-15 Thread Ross Paterson
On Tue, Mar 15, 2005 at 08:12:48AM -0600, John Goerzen wrote: [...] but Hugs is now much stricter, because character streams now use the encoding determined by the current locale (for the C locale, that means ASCII only). Hmm, this seems to be completely undocumented. It's mentioned in

Re: [Haskell-cafe] Parity of the number of inversions of a permutation

2005-03-15 Thread Henning Thielemann
On Tue, 15 Mar 2005, Ben Rudiak-Gould wrote: Henning Thielemann wrote: I' searching for a function which sorts the numbers and determines the parity of the number of inversions. I assume that there are elegant and fast algorithms for this problem (n * log n time steps), e.g. a merge sort

[Haskell-cafe] wxHaskell htmlWindow usage

2005-03-15 Thread David Owen
Good day all, I am attempting to display html pages using wxHaskell's HtmlWindow functions. I am hoping that it is indeed possible for me to do just that and that I haven't misunderstood what HtmlWindow is used for. My code so far will create a frame, a button and an HtmlWindow and other

[Haskell-cafe] Parser problem continued

2005-03-15 Thread Nicola Whitehead
Curiouser and curiouser... expr :: Parser Intexpr = do t - term do symbol "+"e - expr return (t + e) +++ return t solves the undefined variable problem but introduces a new 'Last operator in do {...} must be an _expression_' error, which then disappears if I explicitly return e expr

Re: [Haskell-cafe] Parser problem continued

2005-03-15 Thread robert dockins
expr :: Parser Int expr = do t - term do symbol + e - expr return e return (t + e) +++ return t- 't' is not in scope at the arrow. t only exists inside the do block, and your code parses like this ( do t - return (t+e) ) +++

RE: [Haskell-cafe] Parser problem continued

2005-03-15 Thread Nicola Whitehead
perhaps like this: expr = do t - term (do symbol + e - expr return (t+e) ) +++ (return t) although I think you may also want a 'try' before the first alternative. No, that still gives the same undefined variable error.

Re: [Haskell-cafe] Parser problem continued

2005-03-15 Thread Tomasz Zielonka
On Tue, Mar 15, 2005 at 03:44:55PM -, Nicola Whitehead wrote: perhaps like this: expr = do t - term (do symbol + e - expr return (t+e) ) +++ (return t) although I think you may also want a 'try' before the

Re: [Haskell-cafe] Parser problem continued

2005-03-15 Thread Arthur Baars
The layout of your code is very important when writing haskell code: Your code : expr = do t - term do symbol + e - expr return e return (t + e) +++ return t is equivalent to: expr = do { t - term ; do { symbol + ; e -

RE: [Haskell-cafe] Parser problem continued

2005-03-15 Thread Nicola Whitehead
Thanks folks! Writing it in a lispy manner seems to work. I see what Arthur means about the layout - I think I'm still thinking too much in C. :) Nik Dr Nik FreydĂ­s Whitehead University of Akureyri, Iceland * Having the moral

Re: [Haskell-cafe] wxHaskell htmlWindow usage

2005-03-15 Thread Patrick Scheibe
Hi, When I use the htmlWindowLoadPage hw ./test.html function, everything works fine and I see the content of the test.html page. Cheers Patrick On Tuesday 15 March 2005 15:51, David Owen wrote: Good day all, I am attempting to display html pages using wxHaskell's HtmlWindow

[Haskell-cafe] re parser question

2005-03-15 Thread Carter Tazio Schonwald
term :: Parser Int term = do f - factor do symbol "*" e - expr return (f * t)--- replace t with e +++ return f I hope that helps, Carter Schonwald ___ Haskell-Cafe

Re: [Haskell-cafe] invalid character encoding

2005-03-15 Thread Ian Lynagh
On Tue, Mar 15, 2005 at 10:44:28AM +, Ross Paterson wrote: On Mon, Mar 14, 2005 at 07:38:09PM -0600, John Goerzen wrote: I've got some gzip (and Ian Lynagh's Inflate) code that breaks under the new hugs with: handle: IO.getContents: protocol error (invalid character encoding)