Re: [Haskell-cafe] Parsers are monadic?

2007-06-30 Thread Big Chris
Hi Gregory, First post. I'm a newbie, been using Haskell for about a week and love it. Anyway, this is something I don't understand. Parsers are monadic. I can see this if the parser is reading from an input stream but if there's just a block of text can't you just have the parser call

[Haskell-cafe] Re: global variables

2007-05-17 Thread Big Chris
On Thu, 17 May 2007, Jason Dagit wrote: Well, it seems to me that Haskell modules are actually very similar to singletons. Perhaps all these problems with modules having top level mutable state could be solved if Haskell modules were parameterizable at instantiation? I'm not saying we should

Re: [Haskell-cafe] principle types

2007-03-14 Thread Big Chris
Hi Vikrant, The other two have said basically the same thing as me, but your description of map's type makes me think maybe an explanation of curried functions is in order: map is what's called a curried function. Basically, the type: (a - b) - [a] - [b] has two interpretations. The