Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Brian Hulley
Brian Hulley wrote: Robin Green wrote: So simply make strictness the default and have laziness annotations (for arguments), instead of making laziness the default and having strictness annotations. Where would you put these laziness annotations? If you put them in the function declaration eg

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Brian Hulley
Brian Hulley wrote: if' :: ~a -> ~b -> Bool Oooops :-) if' :: Bool -> ~a -> ~a -> a Regards, Brian. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Brian Hulley
John Meacham wrote: On Fri, Feb 03, 2006 at 07:33:12PM -, Brian Hulley wrote: One question is how to get some kind of "do" notation that would work well in a strict setting. The existing "do" notation makes use of lazyness in so far as the second arg of >> is only evaluated when needed. Per

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Brian Hulley
Robin Green wrote: On Fri, 3 Feb 2006 19:33:12 - "Brian Hulley" <[EMAIL PROTECTED]> wrote: I've been thinking along these lines too, because it has always seemed to me that laziness is just a real nuisance because it hides a lot of inefficiency under the carpet as well as making the time/spa

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Brian Hulley
Jan-Willem Maessen wrote: I pointed out some problems with strict Haskell in a recent talk, but I think it'd be worth underscoring them here in this forum. Is the text of this talk or points raised in it available online anywhere? There is one very difficult piece of syntax in a strict setti

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread John Meacham
On Fri, Feb 03, 2006 at 07:33:12PM -, Brian Hulley wrote: > One question is how to get some kind of "do" notation that would work well > in a strict setting. > The existing "do" notation makes use of lazyness in so far as the second > arg of >> is only evaluated when needed. Perhaps a new ke

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Robin Green
On Fri, 3 Feb 2006 19:33:12 - "Brian Hulley" <[EMAIL PROTECTED]> wrote: > I've been thinking along these lines too, because it has always > seemed to me that laziness is just a real nuisance because it hides a > lot of inefficiency under the carpet as well as making the time/space > behaviour o

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Chris Kuklewicz
Brian Hulley wrote: > Bulat Ziganshin wrote: > [Apologies for replying to a reply of a reply but I don't seem to have > received the original post] > > I've been thinking along these lines too, because it has always seemed > to me that laziness is just a real nuisance because it hides a lot of >

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Chris Kuklewicz
Brian Hulley wrote: > > ... > > [Apologies for replying to a reply of a reply but I don't seem to have > received the original post] > > I've been thinking along these lines too, because it has always seemed > to me that laziness is just a real nuisance because it hides a lot of > inefficiency und

Re: [Haskell-cafe] Pythonic monads

2006-02-03 Thread Collin Winter
On 2/3/06, Graham Klyne <[EMAIL PROTECTED]> wrote: > I have noticed that, while I like to use functional idioms in some of my > Python > code, and the Python language is easily able to support these (even some lazy > evaluation, courtesy of generators), that the code doesn't always look as > clea

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Jan-Willem Maessen
On Feb 3, 2006, at 2:33 PM, Brian Hulley wrote: Bulat Ziganshin wrote: Hello Wolfgang, Friday, February 03, 2006, 1:46:56 AM, you wrote: i had one idea, what is somewhat corresponding to this discussion: make a strict Haskell dialect. implement it by translating all expressions of form "f x

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Brian Hulley
Bulat Ziganshin wrote: Hello Wolfgang, Friday, February 03, 2006, 1:46:56 AM, you wrote: i had one idea, what is somewhat corresponding to this discussion: make a strict Haskell dialect. implement it by translating all expressions of form "f x" into "f $! x" and then going to the standard (laz

[Haskell-cafe] Pythonic monads

2006-02-03 Thread Graham Klyne
Constructing some code today in Python, using some functional-style coding idioms, I found myself wondering if there would be any real benefit to using a monad-based implementation (i.e. other than to demonstrate that it can be done). The application that sparked this line of thought was a simple

Re: [Haskell-cafe] Re: Haskell code for this example of flow control

2006-02-03 Thread Robert Dockins
On Feb 3, 2006, at 11:28 AM, Maurício wrote: Kurt Hutchinson wrote: On 2/2/06, Maurício <[EMAIL PROTECTED]> wrote: I understand those examples, but I really would like to know how to do that with monads. I would like to ask the same question, but now with this code: double a = 1000; dou

[Haskell-cafe] Re: Haskell code for this example of flow control

2006-02-03 Thread Maurício
Kurt Hutchinson wrote: On 2/2/06, Maurício <[EMAIL PROTECTED]> wrote: I understand those examples, but I really would like to know how to do that with monads. I would like to ask the same question, but now with this code: double a = 1000; double b = 0; while (a != b) { a /= 2; cout <

[Haskell-cafe] Re: HUnit

2006-02-03 Thread Shae Matijs Erisson
Matt Roberts <[EMAIL PROTECTED]> writes: > I am in love with HUnit and QuickCheck. However, I am missing one > important functionality I'm rather fond of them also. Check my prototype of test-driven-development for QuickCheck: http://www.scannedinavian.com/~shae/qc-tdd.tgz > I want to call a co

[Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-03 Thread Bulat Ziganshin
Hello Wolfgang, Friday, February 03, 2006, 1:46:56 AM, you wrote: >> i had one idea, what is somewhat corresponding to this discussion: >> >> make a strict Haskell dialect. implement it by translating all >> expressions of form "f x" into "f $! x" and then going to the standard >> (lazy) haskell t