Re: Here-docs in Haskell source

2006-09-23 Thread John Goerzen
On Fri, Sep 22, 2006 at 11:54:42PM -0400, Ian Zimmerman wrote: > > John> indentation. > > Automatic indentation is only one aspect of Emacs modes, and as far as I > am concerned not nearly the most important one. > > Here's a quick test: put the cursor in front of a triple-quoted string, > then

Re: Here-docs in Haskell source

2006-09-23 Thread John Goerzen
On Fri, Sep 22, 2006 at 09:30:50PM -0400, Ian Zimmerman wrote: > > John> Why not just go the Python way and use """ ? That is, three > John> literal quotes at the beginning and end. After all, Python has > John> lifted quite a few things from Haskell. Time to return the > John> favor. ;-) > >

Re: Here-docs in Haskell source

2006-09-23 Thread John Goerzen
On Fri, Sep 22, 2006 at 12:39:34PM -0400, Ian Zimmerman wrote: > If you do this at all, reuse the regular quotes, don't invent yet > another weird and wonderful lexical syntax. Haskell is already bad > enough that way, with \ used for lambda and so on. @" would be okay I > guess. Why not just go

Re: Here-docs in Haskell source

2006-09-22 Thread John Goerzen
On Fri, Sep 22, 2006 at 01:45:56PM +0100, Alistair Bayley wrote: > Apologies if this has been covered already... I've searched the > haskell-prime list archive and not found anything on this. > > I'd like to submit a request for a fairly trivial feature: multi-line > text literals in source, AKA h

Re: A modest proposal

2006-04-15 Thread John Goerzen
On Sat, Apr 15, 2006 at 07:15:28PM +1000, Hoan Ton-That wrote: > Hello Happy Haskellers, > > I would like to humbly suggest that we replace all Int > functions in the prelude with the corresponding generic > ones. These are: drop, take, length, splitAt, replicate and > (!!). > > If at all possib

Re: Exceptions

2006-04-07 Thread John Goerzen
On Fri, Apr 07, 2006 at 03:49:40PM +0100, Simon Marlow wrote: > John, have you seen this? > > http://haskell.galois.com/cgi-bin/haskell-prime/trac.cgi/wiki/Extensible > Exceptions Yes, and maybe I'm missing something, but I don't think it quite helps. I followed the link to the example page at:

Exceptions

2006-04-07 Thread John Goerzen
Hello, One thing that bugs me about Haskell is that exceptions are not extensible. I don't know how to craft a good solution, but perhaps if I explain the problem well, someone would come up with one. In a language such as Python or Java, and exception is an object. Let's consider Python for a

Re: Concurrency

2006-03-31 Thread John Goerzen
On Fri, Mar 31, 2006 at 02:49:53PM -0800, John Meacham wrote: > > threading if it's available, but can degrade gracefully if not? Should > > I be forced to use something like cpphs to detect the presence of > > threading in advance? It would be better to detect this at runtime than > > fail to co

Re: Concurrency

2006-03-31 Thread John Goerzen
On Fri, Mar 31, 2006 at 01:51:14PM -0800, John Meacham wrote: > > If so, we should specify what exception is raised if, say, forkIO is > > called on such a system. We should also make it clear that > > single-threaded implementations are required of things such as MVars. > > Finally, we should add

Re: important news: refocusing discussion

2006-03-24 Thread John Goerzen
On Fri, Mar 24, 2006 at 11:07:53AM +, Malcolm Wallace wrote: > threads, and I assume that since a non-concurrent implementation has > only one thread, that thread will be trying to MVar-synchronise with > something that does not exist, and hence be blocked for ever. I can Not necessarily. An

Re: Priorities

2006-02-03 Thread John Goerzen
On Fri, Feb 03, 2006 at 05:56:41PM +0100, Tomasz Zielonka wrote: > On Fri, Feb 03, 2006 at 10:03:08AM -0600, John Goerzen wrote: > > I know, of course, that Java green threads and Haskell forkIO threads > > are called "threads", but I personally believe its misleading t

Re: Priorities

2006-02-03 Thread John Goerzen
On Fri, Feb 03, 2006 at 12:00:23PM +0100, Tomasz Zielonka wrote: > > TZ> The design of Haskell was so great, that we could add concurrency as > > TZ> a library without introducing any problems... but we have > > TZ> concurrency in the standard anyway... > > > > concurrency should go in

Re: Priorities

2006-02-03 Thread John Goerzen
On Fri, Feb 03, 2006 at 01:00:32AM -0800, John Meacham wrote: > On Fri, Feb 03, 2006 at 08:40:27AM -, Simon Peyton-Jones wrote: > > The interface can be a library, but (a) what libraries are available is > > part of the language definition and (b) it's hard to build a good > > implementation wi

Re: Library Reform

2006-02-02 Thread John Goerzen
On Thu, Feb 02, 2006 at 12:46:13PM -0800, Ashley Yakeley wrote: > If Haskell Prime is going to have certain type extensions rolled in, can > we make changes to the standard libraries that take advantage of these? I would hope so. But then, just what are the standard libraries anymore? The Haske