Re: Windows Install Problem

2001-01-03 Thread Reuben Thomas
I read the newsgroup and found that I should use the -static flag (can someone update the documentation) but I then got the following errors: $ ghc -static main.hs Compilation IS NOT required Delete your object files and start again. The docs will be fixed for 4.08.2 (the online docs should

modifyIORef in IOExts/hslibs

2001-01-03 Thread Axel Krauth
Hi! I'm using the IOExts-library and want to use modifyIORef instead of updateIORef which is marked as deprecated (section 4.14.2 in the hslibs documentation). Unfortunately IOExts.hi doesn't export modifyIORef. It only exports updateIORef.. Is it safe to use updateIORef meanwhile? bye, Axel

Re: (no subject)

2001-01-03 Thread Shlomi Fish
On Wed, 3 Jan 2001 [EMAIL PROTECTED] wrote: somebody can tell me where I can find some ideas that help me in the construction of a minesweeper programmed in haskell I thank any type of help because I am a little confused Check out the Haskell Gtk bindings. Regards, Shlomi Fish

Re: Learning Haskell and FP

2001-01-03 Thread Ketil Malde
"Karl M. Syring" [EMAIL PROTECTED] writes: Mind if I "me too" a bit? I had just read the SICP, and I too found that the Gentle Introduction served well as an introduction to the Haskell syntax. If you start out with zero knowledge in functional programming, as I do, the GITH is really not

RE: Learning Haskell and FP

2001-01-03 Thread Simon Peyton-Jones
| PS: are the members of the list expecting to get replies by | private mail? The thing to do is to switch the thread to [EMAIL PROTECTED] haskell@haskell-org is meant for openers; longer threads should move to haskell-cafe. That way people can control how inundated they get. You

Writing a beginners guide to Haskell

2001-01-03 Thread i r thomas
Here's a suggestion: would someone like to write such a guide, from the point of view of a beginner, leaving blanks that we can fill in, when you come across a task or issue you don't know the answer to? That is, you provide the skeleton, and we fill in the blanks. Well, I am definitely a

Re: Learning Haskell and FP

2001-01-03 Thread Shlomi Fish
On Tue, 2 Jan 2001, Paul Hudak wrote: Unforunately, the "Gentle Introduction To Haskell" that haskell.org links to is not a very useful introduction. John and I should probably rename this document, since it really isn't a very gentle intro at all. We should probably also downplay it's

Re: Learning Haskell and FP

2001-01-03 Thread Paul Hudak
Thanks to everyone for their comments regarding "GITH". I conclude that: -- it is useful to people who have previously programmed in Scheme or some other functional language -- it is a difficult read for those not familiar with FP concepts, and certainly not appropriate for novice

Re: Learning Haskell and FP

2001-01-03 Thread John Peterson
One more thing: I'm happy to incorporate any tutorial material into haskell.org. If you have material that would be appropriate please let me know and I'll add it to the site. I know there are some very good slides from Haskell courses that could be put into haskell.org. The document sources

Re: Learning Haskell and FP

2001-01-03 Thread George Russell
Paul Hudak wrote: [snip] So I suppose the main thing that John and I should think about is changing the title. Something like "An Introduction to Haskell for People Who Have Previously Programmed in Scheme or Some Other Functional Language" might be good! :-) "A Gentle Introduction to

Re: Learning Haskell and FP

2001-01-03 Thread Michael Zawrotny
Paul Hudak [EMAIL PROTECTED] wrote: Thanks to everyone for their comments regarding "GITH". I conclude that: -- it is useful to people who have previously programmed in Scheme or some other functional language -- it is a difficult read for those not familiar with FP concepts, and

RE: Problem with functional dependencies

2001-01-03 Thread Mark P Jones
| I think you can simplify the example. Given | | class HasFoo a b | a - b where | foo :: a - b | instance HasFoo Int Bool where ... | | Is this legal? | f :: HasFoo Int b = Int - b | f x = foo x The theoretical foundation for functional dependencies goes back

Re: Problem with functional dependencies

2001-01-03 Thread Fergus Henderson
On 03-Jan-2001, Mark P Jones [EMAIL PROTECTED] wrote: ... the best way to deal with this is (probably): (i) to infer simpler types whenever possible, but (ii) to allow more polymorphic types when they are requested by means of an explicit type signature. I agree. (Incidentally, in

Re: GHC/Happy on MacOS X/Darwin

2001-01-03 Thread Hans Aberg
[Replies please cc me or the hugs-bugs list, as I currently is not on the Haskell list.] At 11:05 +0100 1-01-03, Atze Dijkstra wrote: On http://www.cs.uu.nl/~atze/Programming/index.html a version of ghc (4.08.1) and happy (still 1.8) for MacOS X/Darwin can be downloaded. However, a few remarks do

Re: Problem with functional dependencies

2001-01-03 Thread Marcin 'Qrczak' Kowalczyk
I don't fully understand fundeps. Would the following transform legal programs (without overlapping instances) into legal programs? I hope yes. Let's imagine a class with a set of instances and uses, without fundeps. - Add some additional type variables to the class header. - Add a fundep: all

Re: GHC/Happy on MacOS X/Darwin

2001-01-03 Thread Atze Dijkstra
At 19:01 +0100 03/01/2001, Hans Aberg wrote: - The MacOS X cc (c compiler) has some (blocking) bugs (for example, problems with asm statements) which hinder progress. Isn't this related to the "munging" that GHC makes use of on other platforms? Apple's cc (actually gcc) does not accept 'asm'

Re: Learning Haskell and FP

2001-01-03 Thread William Lee Irwin III
On Wed, Jan 03, 2001 at 01:28:41AM -0800, Simon Peyton-Jones wrote: Here's a suggestion: would someone like to write such a guide, from the point of view of a beginner, leaving blanks that we can fill in, when you come across a task or issue you don't know the answer to? That is, you provide

RE: Learning Haskell and FP

2001-01-03 Thread Karl M. Syring
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ketil Malde Sent: Wednesday, January 03, 2001 8:28 AM To: George Russell Cc: [EMAIL PROTECTED]; i r thomas; [EMAIL PROTECTED] Subject: Re: Learning Haskell and FP George Russell [EMAIL PROTECTED]

Re: Are anonymous type classes the right model at all? (replying to Re: Are fundeps the right model at all?)

2001-01-03 Thread Stefan Karrmann
A syntax to choose the active instances may be useful, too. E.g.: use EccenticOrd, SetCollection in exp then in exp the instances EccenticOrd, SetCollection are known (or preferred). This is similiar to the open syntax in Cayenne. -- Stefan Karrmann

RE: Learning Haskell and FP

2001-01-03 Thread Karl M. Syring
-Original Message- From: Simon Peyton-Jones [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 10:02 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Learning Haskell and FP | PS: are the members of the list expecting to get replies by | private mail? The

Re: Problems compiling HDirect 0.17

2001-01-03 Thread Fergus Henderson
On 03-Jan-2001, Eric Allen Wohlstadter [EMAIL PROTECTED] wrote: When I try to compile hdirect on cygwin on my NT I get a lot of complaints from ghc about bad tokens. Particularly the use of "\" to continue a line. For some reason it doesn't see it as the line continuation character. You need

Re: Learning Haskell and FP

2001-01-03 Thread Benjamin L. Russell
On Wed, 03 Jan 2001 11:26:53 -0500 Michael Zawrotny [EMAIL PROTECTED] wrote: [snip] The reason that I found GITH difficult wasn't that the concept of programming with functions/functional style was new to me. What got me was that the concepts and notations were much more