Re: [Haskell-cafe] Why is $ right associative instead ofleftassociative?

2006-02-06 Thread Cale Gibbard
On 06/02/06, John Hughes [EMAIL PROTECTED] wrote: Cale Gibbard wrote: That said, I'd *really* like to see monad comprehensions come back, since they align better with the view that monads are container types, dual to the view that monads are computations, which is supported by the do-syntax.

Re[2]: [Haskell-cafe] Why is $ right associative instead ofleftassociative?

2006-02-06 Thread Bulat Ziganshin
Hello John, Monday, February 06, 2006, 10:39:59 AM, you wrote: That said, I'd *really* like to see monad comprehensions come back, JH We did consider more aggressive defaulting to address the ambiguity JH problems with monad comprehensions--defaulting Monad to lists, for JH example, or

Re: [Haskell-cafe] Why is $ right associative instead of left associative?

2006-02-06 Thread Henning Thielemann
On Sun, 5 Feb 2006, Lennart Augustsson wrote: I don't use lists very much. They are not the right data structure for many things. Certainly, but lists are useful as interim data structure or for initialising complex data structures. So : is not as common as :: in my code. I checked a small

Re: [Haskell-cafe] map and list comprehensions

2006-02-06 Thread Paul Hudak
John Peterson wrote: I think the point was that all syntax (like list comprehensions or pattern matching) in Haskell is tied directly to the Prelude. So [ f x ...] is ALWAYS using the Prelude definitions of things while map could be hidden and redefined. Yes, of course. I was implicitly

Re[2]: [Haskell-cafe] Why is $ right associative instead of left associative?

2006-02-06 Thread Bulat Ziganshin
Hello Henning, Monday, February 06, 2006, 4:12:44 PM, you wrote: In my opinion all the special syntactic sugar for lists should go away. I don't think lists are special enough to motivate it. HT Fine, someone shares my attitude towards the list sugar. Nevertheless, do HT you mean with 'no

Re: [Haskell-cafe] extending bang proposal Re: strict Haskell dialect

2006-02-06 Thread Robert Dockins
On Feb 6, 2006, at 9:19 AM, Bulat Ziganshin wrote: Hello Ketil, Monday, February 06, 2006, 4:06:35 PM, you wrote: foo :: !Int - !Int KM (Is the second ! actually meaningful?) yes! it means that the function is strict in its result - i.e. can't return undefined value when strict

[Haskell-cafe] Re: extending bang proposal Re: strict Haskell dialect

2006-02-06 Thread Ben Rudiak-Gould
Bulat Ziganshin wrote: Hello Ketil, KM (Is the second ! actually meaningful?) yes! it means that the function is strict in its result - i.e. can't return undefined value when strict arguments are given. Unfortunately this interpretation runs pretty quickly into theoretical difficulties. A !

Re: [Haskell-cafe] Re: extending bang proposal Re: strict Haskelldialect

2006-02-06 Thread Brian Hulley
Ben Rudiak-Gould wrote: As Robert Dockins said, it's not implemented, and it isn't clear how to implement it. At this point it's looking fairly likely that my PhD thesis will be on this very topic, so stay tuned. Isn't all this already implemented in Clean? Regards, Brian.

[Haskell-cafe] Re: [Haskell] Re: Streams: the extensible I/O library

2006-02-06 Thread Bulat Ziganshin
Hello Peter, Monday, February 06, 2006, 10:24:01 PM, you wrote: moving to nescafe :) PS You can find further information about the library at the PS page http://haskell.org/haskellwiki/Library/Streams and PS download it as http://freearc.narod.ru/Streams.tar.gz PS Is there any chance of

Re[2]: [Haskell-cafe] extending bang proposal Re: strict Haskell dialect

2006-02-06 Thread Bulat Ziganshin
Hello Robert, Monday, February 06, 2006, 8:40:11 PM, you wrote: foo :: !Int - !Int btw, it's just implemented in the GHC HEAD RD Actually, I think strict _patterns_ are implemented. You are talking RD about strict _type annotations_, which is rather different. yes, i was wrong RD There

Re: [Haskell-cafe] extending bang proposal Re: strict Haskell dialect

2006-02-06 Thread Ronny Wichers Schreur
On Feb 6, 2006, at 19:33, Brian Hulley wrote: Clean allows (AFAIK) several distinctions to be made: 1) ![a] means that the list of a's is a strict argument, just like writing !b 2) [!a] means that the list is head strict (List1 a) 3) [a!] means that the list is tail strict (List2 a) 4)

Re: [Haskell-cafe] Why is $ right associative instead ofleftassociative?

2006-02-06 Thread Taral
On 2/6/06, John Hughes [EMAIL PROTECTED] wrote: The trouble with monad comprehensions was that it became far too easy to write ambiguous programs, even when you thought you were just working with lists. Would the Haskell98-style solution be to add defaulting for Monads? -- Taral [EMAIL

[Haskell-cafe] main features of functional programming paradigm

2006-02-06 Thread Abigail
Hi, I would like to ask about what are tha main features of functional programming? Additionally, about FAD: A Functional Analysis and Design Methodology What kind of software can i develop with this methodology? thanks for your answers Abigail.

Re: [Haskell-cafe] main features of functional programming paradigm

2006-02-06 Thread Jared Updike
I would like to ask about what are tha main features of functional programming? If you are new to functional programming, read this http://haskell.org/haskellwiki/Introduction What kind of software can i develop with this methodology? I'm not sure what you mean by your question as it is

Re: [Haskell-cafe] Re[2]: Fast Mutable Variables for the IO and ST monads

2006-02-06 Thread John Meacham
On Mon, Feb 06, 2006 at 11:13:47PM +0300, Bulat Ziganshin wrote: btw, i have the counter proposal - automatically convert IORefs of simple types to the fast internal variables like the Int automatically converted to the Int#. The same applies to automatic conversion of arrays to the unboxed

Re: [Haskell-cafe] Re[2]: Fast Mutable Variables for the IO and ST monads

2006-02-06 Thread John Meacham
On Mon, Feb 06, 2006 at 04:19:03PM -0800, John Meacham wrote: On Mon, Feb 06, 2006 at 11:13:47PM +0300, Bulat Ziganshin wrote: btw, i have the counter proposal - automatically convert IORefs of simple types to the fast internal variables like the Int automatically converted to the Int#. The

[Haskell-cafe] Re: [Haskell] Re: Streams: the extensible I/O library

2006-02-06 Thread Peter Simons
Hey Bulat, I tried removing the import System.Win32, but unfortunately it only got me so far: | Examples$ ghc -i.. -O2 -funbox-strict-fields --make wc.hs -o wc | Chasing modules from: wc.hs | [ 1 of 16] Compiling System.FD( ../System/FD.hs, ../System/FD.o ) | |