Re: [Haskell-cafe] Does anybody have a simple example of using continuation Monad?

2006-01-12 Thread Cale Gibbard
On 12/01/06, Marc Weber <[EMAIL PROTECTED]> wrote: > I'm struggling with this example: > http://www.nomaware.com/monads/html/contmonad.html#example > After looking at it for the fourth time I got much more.. but still not > enough.. > > because there are so much new things (when beeing translated i

[Haskell-cafe] Does anybody have a simple example of using continuation Monad?

2006-01-12 Thread Marc Weber
I'm struggling with this example: http://www.nomaware.com/monads/html/contmonad.html#example After looking at it for the fourth time I got much more.. but still not enough.. because there are so much new things (when beeing translated into some kind of condition ?> thentodo :> elsetodo which is u

Re: [Haskell-cafe] What does the Haskell type system do with "show (1+2)"?

2006-01-12 Thread Jared Updike
http://www.haskell.org/onlinereport/decls.html#default-decls http://www.haskell.org/tutorial/numbers.html#sect10.4 On 1/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > What does the Haskell type system do with expressions such as these . . . ? >show 1 >show (1+2) > > The type of th

[Haskell-cafe] What does the Haskell type system do with "show (1+2)"?

2006-01-12 Thread Jeff . Harper
What does the Haskell type system do with expressions such as these . . . ?    show 1    show (1+2) The type of the subexpressions "1" and "1+2" are "ambiguous" since they have type "(Num a) => a".  I'm under the assumption before "1+2" is evaluated, the "1" and "2" must be coerced into a "concre

Re: [Haskell-cafe] Re: Chameneos

2006-01-12 Thread Isaac Gouy
--- Aaron Denney <[EMAIL PROTECTED]> wrote: Are we off-topic for this mailing-list? I'd just like to respond to this: > Anyways, your shootout, your hard work, your rules, > but having rulings on what's acceptable be easier to > find would be nice. People here have made the effort to develop pr

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-12 Thread Sebastian Sylvan
On 1/12/06, Henning Thielemann <[EMAIL PROTECTED]> wrote: > > On Thu, 12 Jan 2006, Jason Dagit wrote: > > > On Jan 12, 2006, at 1:34 AM, Henning Thielemann wrote: > > > > > On Wed, 11 Jan 2006, Michael Vanier wrote: > > > > > >> Is there any support for multi-line string literals in Haskell? I've

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-12 Thread Henning Thielemann
On Thu, 12 Jan 2006, Jason Dagit wrote: > On Jan 12, 2006, at 1:34 AM, Henning Thielemann wrote: > > > On Wed, 11 Jan 2006, Michael Vanier wrote: > > > >> Is there any support for multi-line string literals in Haskell? I've > >> done a web search and come up empty. I'm thinking of using > >> Ha

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-12 Thread Jason Dagit
On Jan 12, 2006, at 1:34 AM, Henning Thielemann wrote: On Wed, 11 Jan 2006, Michael Vanier wrote: Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to generate web pages and having multi-line strings wo

Re: [Haskell-cafe] Re: Shootout favoring imperative code

2006-01-12 Thread Bulat Ziganshin
Hello Einar, Wednesday, January 11, 2006, 6:06:56 PM, you wrote: >> My version of the packed string library does have an hGetLine. Don >> Stewart was merging my version with his fps at some point, Don - any >> news on that? EK> Getting a fast FastPackedString will solve the problems with many

Re[2]: [Haskell-cafe] I/O and utf8

2006-01-12 Thread Bulat Ziganshin
Hello Einar, Wednesday, January 11, 2006, 6:14:44 PM, you wrote: EK> Do you plan on supporting things like HTTP where the character set EK> is only known in the middle of the parsing? yes, it is supported, see Examples/Encoding.hs in the http://freearc.narod.ru/Binary.tar.gz : h <- openWithEnc

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-12 Thread Henning Thielemann
On Wed, 11 Jan 2006, Michael Vanier wrote: > Is there any support for multi-line string literals in Haskell? I've > done a web search and come up empty. I'm thinking of using Haskell to > generate web pages and having multi-line strings would be very useful. Do you mean unlines ["first line",