RE: [Haskell-cafe] Using -fcontext-stackXX in an OPTIONS pragma

2004-04-06 Thread Simon Peyton-Jones
Contrary to the manual, -fcontext-stackN is a static flag, so you have to set it on the command line, I'm afraid. I'll fix the manual. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of | Anders Höckersten | Sent: 05 April 2004 13:43 | To:

[Haskell-cafe] Data structure for filesystem representation

2004-04-06 Thread Gerd M
Hello! For an university project i need to design a data structure (in haskell) that's capable of representing a unix filesystem and therefore fast insertion/deletion. Support for persistent storage is also required. Principally i was thinking to use a Binary Search Tree or an AVL Tree but

[Haskell-cafe] Newbie: Is it possible to catch _|_ ?

2004-04-06 Thread Russ Lewis
Another newbie question: Is it possible to catch _|_ - that is, to encounter it, handle it and continue? I'm assuming that you all are going to say no, since I can't figure out any way to do this and retain the functional nature of Haskell. ___

Re: [Haskell-cafe] Newbie: Is it possible to catch _|_ ?

2004-04-06 Thread Ketil Malde
Russ Lewis [EMAIL PROTECTED] writes: Another newbie question: Is it possible to catch _|_ - that is, to encounter it, handle it and continue? Since _|_ is the value of a non-terminating computation, this requires you to solve the halting problem. GHC does occasionally detect loops, but for

Re: [Haskell-cafe] Newbie: Is it possible to catch _|_ ?

2004-04-06 Thread Bjorn Bringert
Ketil Malde wrote: Russ Lewis [EMAIL PROTECTED] writes: Another newbie question: Is it possible to catch _|_ - that is, to encounter it, handle it and continue? Since _|_ is the value of a non-terminating computation, this requires you to solve the halting problem. GHC does occasionally detect

Re: [Haskell-cafe] Newbie: Is it possible to catch _|_ ?

2004-04-06 Thread Jon Cast
Russ Lewis [EMAIL PROTECTED] wrote: Another newbie question: Is it possible to catch _|_ - that is, to encounter it, handle it and continue? I'm assuming that you all are going to say no, since I can't figure out any way to do this and retain the functional nature of Haskell. This isn't

Re: [Haskell-cafe] Newbie: Is it possible to catch _|_ ?

2004-04-06 Thread Wolfgang Jeltsch
Am Dienstag, 6. April 2004 16:23 schrieb Russ Lewis: Another newbie question: Is it possible to catch _|_ - that is, to encounter it, handle it and continue? I'm assuming that you all are going to say no, since I can't figure out any way to do this and retain the functional nature of Haskell.

Re: [Haskell-cafe] Newbie: Is it possible to catch _|_ ?

2004-04-06 Thread Iavor S. Diatchki
hello, this is an attempt to give an answer to someone who is new to Haskell. the answer to your question is: no, there is no way to catch _|_, as that would mean that we can solve the halting problem. a piece of advice, especially while you are new to haskell --- don't worry too much about _|_.

Re: [Haskell-cafe] Newbie: Is it possible to catch _|_ ?

2004-04-06 Thread Russ Lewis
Oh. I was figuring that the runtime would detect _|_ whenever evaluation requires that it calculate a given expressoin, and that expression is currently being evaluated...that is, some subset of an expression evaluates to the expression itself. Now that you mention it, I guess there are a lot

Re: [Haskell-cafe] Newbie: Is it possible to catch _|_ ?

2004-04-06 Thread Russ Lewis
I am new to Haskell (and to functional programming). In fact, I haven't written a single line of Haskell code. But I love programming languages, and when I read the Gentle Introduction to Haskell, I started pondering how to use Haskell to solve my current favorite problem, which is the