Panic report in ghci

2003-07-25 Thread Jeffrey Scofield
GHC folk: Howdy; ghci just asked me to report the bug below, so I am doing so. I'm running on Mac OS X 10.2.6. Let me just say that ghc is awesome, I'm constantly amazed by how great it is. I'm now trying to find a way to make a living by writing Haskell code! Regards, Jeffrey A. Scofield, PhD

RE: Panic report in ghci

2003-07-25 Thread Simon Marlow
___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.0, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :? for help. Loading package base ... linking ... done. Prelude let f n | n 5 =

[ ghc-Bugs-435147 ] Error in build system for HC booting

2003-07-25 Thread SourceForge.net
Bugs item #435147, was opened at 2001-06-21 16:19 Message generated for change (Comment added) made by simonmar You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=435147group_id=8032 Category: Build System Group: 5.00 Status: Closed Resolution: Fixed

RE: The Errno Story

2003-07-25 Thread Simon Marlow
I therefore propose that we make the RTS save restore the value of errno in the TSO, thus making errno Haskell-Thread-Local-State, and solving all of the above problems. Actually this has been on my ToDo list for a long time, I just never got around to doing it (it has been mentioned on

ENQUIRY

2003-07-25 Thread MR. DAVID LARSON
FROM: MR. DAVID LARSON ANTHONY EZE CO. SIR, SUBJECT: TRUST NEED YOUR KIND RESPONSE TO THE FOLLOWING REQUEST: I HAVE A MANDATE TO SOURCE FOR A FINANCIAL MANAGEMENT PERSONNEL ASIDE AFRICA, BE IT YOUR PROFFESSION OR NOT, ITS NATURE DOES NOT COUNT, BUT ONLY HONESTY IS NEEDED AT ITS PEAK AND

RE: GHC 6.0, Mingw32 and RTS

2003-07-25 Thread Michael Adams
I found the cause of the error. If I pass --enable-win32-dll to configure then the error happens. When I don't pass --enable-win32-dll, the error doesn't happen (build.mk however still has GhcLibWays+=dll in it) and stage1 completes. What is the purpose of --enable-win32-dll? How is it

Re: Function composition and currying

2003-07-25 Thread Dr Mark H Phillips
Thanks to all the people who responded to my question! The solution from Wolfgang Jeltsch: (f.).g was what I was after. But the other responses were useful also. Thanks! Mark. On Thu, 2003-07-17 at 09:57, Dr Mark H Phillips wrote: Hi, Hopefully this is a simple question. I am wanting

Re: StrategyLib - need help

2003-07-25 Thread Dmitry Astapov
Evening, Ralf. Ralf Laemmel [EMAIL PROTECTED] 20:27 24/7/2003 wrote: RL a) Add a class constraint for Show to the Term class. RL(Would that work? It's a bit invasive anyway.) Yes, that a bit invasive to say at least. With equal ease I can hack DrIFT to produce instances of Show the way I

Re: StrategyLib - need help

2003-07-25 Thread Ralf Laemmel
(Let's go to haskell-cafe if we want to continue.) Hi Dmitry, Sigh. Indeed, the distributed instance Show TermRep is not fit. The default TermRep in the Strafunski distribution is not even willing to disclose constructor names. So there is no way unless you tweak TermRep (and DrIFT). TermRep

dynamics on polymorphic datatype

2003-07-25 Thread Wang Meng
Hi All, I am trying to perform dynamic casting on polymorphic types. Let's say I have a data type like: data Foo a = Foo a Is there any way to use dynamics to convert a value of type Foo a to a type reprentation? I try to use the toDyn in the dynamic libray, it complains for ambigours a. Is

ENQUIRY

2003-07-25 Thread MR. DAVID LARSON
FROM: MR. DAVID LARSON ANTHONY EZE CO. SIR, SUBJECT: TRUST NEED YOUR KIND RESPONSE TO THE FOLLOWING REQUEST: I HAVE A MANDATE TO SOURCE FOR A FINANCIAL MANAGEMENT PERSONNEL ASIDE AFRICA, BE IT YOUR PROFFESSION OR NOT, ITS NATURE DOES NOT COUNT, BUT ONLY HONESTY IS NEEDED AT ITS PEAK AND

Re: lazy Printing question

2003-07-25 Thread AJ
On Monday 21 Jul 2003 7:21 pm, Alastair Reid wrote: If I try to run the program (compiled using GHC 6), it calculates all members of the list and then prints the whole list in the end. Since Haskell is 'lazy' I was expecting behaviour similar to HUGS where it prints the numbers as it finds

Type design question

2003-07-25 Thread Konrad Hinsen
I am a Haskell newbie working on my first serious test case, and I would like some feedback from the experts to make sure I am not doing anything stupid ;-) My applications are numerical (one goal of my current tests being to check how much of a performance penalty I will pay for using Haskell

Re: lazy Printing question

2003-07-25 Thread Glynn Clements
AJ wrote: Ok so I added the hSetBuffering stdout NoBuffering line to my main function and still got the same 'nonlazy' behaviour, or so I thought. It took me some time to figure out what was going on. I am using emacs to write my code and I was calling a.out from inside it. Obviously it

RE: Type design question

2003-07-25 Thread Hal Daume
Hi Konrad, I am a Haskell newbie working on my first serious test case, and I would like some feedback from the experts to make sure I am not doing anything stupid ;-) Well, I may not exactly qualify, but I can give you a few suggestions, nonetheless... data Floating a = Vector a =

Re: Type design question

2003-07-25 Thread Dylan Thurston
On Fri, Jul 25, 2003 at 08:31:26AM -0700, Hal Daume wrote: However, once we fix this, we can see the real problem. Your Universe class has a method, distanceVector, of type: | distanceVector :: Universe u, Floating a = u - Vector a - Vector a - Vector a And here's the problem. When 'u'

Re: lazy Printing question

2003-07-25 Thread AJ
On Friday 25 Jul 2003 6:52 pm, you wrote: AJ wrote: Ok so I added the hSetBuffering stdout NoBuffering line to my main function and still got the same 'nonlazy' behaviour, or so I thought. It took me some time to figure out what was going on. I am using emacs to write my code and I was