[Haskell] ICFP 2006 --- Call for Papers

2006-02-20 Thread Simon Marlow
[posting on behalf of John Reppy [EMAIL PROTECTED]] == International Conference on Functional Programming (ICFP 2006) Call for Papers

[Haskell] Re: Haddock ignores fixity declarations?

2006-02-20 Thread Simon Marlow
Benjamin Franksen wrote: I just wanted to check the precedence of the (.) operator from Prelude (http://www.haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html) and noticed with shock ;) that neither precedence levels nor fixity are documented. Is this a known limitation of haddock?

[Haskell] Re: Question for the haskell implementors: Arrays, unsafePerformIO, runST

2006-02-20 Thread Simon Marlow
John Meacham wrote: So, I finally decided that jhc needs real arrays, but am running into an issue and was wondering how other compilers solve it, or if there is a general accepted way to do so. here is what I have so far -- The opaque internal array type data Array__ a -- the array

[Haskell] Long live Edison

2006-02-20 Thread Robert Dockins
Haskell community, As many of you are aware, Edison is a venerable library of data structures written in Haskell, primarily by Chris Okasaki. I have though for some time that it is a great shame that Edison has been languishing in disuse. It has always seemed to me to be high quality

Re: [Haskell] problems with Haskell 98's record system

2006-02-20 Thread Iavor Diatchki
Hello, On 2/19/06, Johannes Waldmann [EMAIL PROTECTED] wrote: ... unless you export everything, you are forced to list all exports explicitly, so there's no way to tell it just the few things you're hiding (though that should not be a difficult extension). Alternative suggestion: remove

Re: [Haskell] Long live Edison

2006-02-20 Thread Robert Dockins
Sorry for replying to myselfHaskell community,As many of you are aware, Edison is a venerable library of data structures written in Haskell, primarily by Chris Okasaki.  I have though for some time that it is a great shame that Edison has been languishing in disuse.  It has always seemed to me

Re: [Haskell] Long live Edison

2006-02-20 Thread ajb
G'day all. Quoting Robert Dockins [EMAIL PROTECTED]: Although I am not a data structures expert, several weeks ago I decided that I would try my hand at maintaining Edison and see if I could overcome these barriers. Toward this end I have taken the most recent Edison codebase I could find

Re: [Haskell] Long live Edison

2006-02-20 Thread ajb
G'day again. Quoting Robert Dockins [EMAIL PROTECTED]: There are a number of methods which take a monad context and call 'fail' (rather than error) under some conditions, usually when the data structure is empty [...] I am considering moving to a MonadPlus context and calling 'mzero' in

[Haskell] Re: IO == ST RealWorld

2006-02-20 Thread Ben Rudiak-Gould
John Meacham wrote: ST doesn't have exceptions which IO does. It would be no good to make ST pay for the cost of exception handling. GHC handles them behind the scenes (I think?) but in jhc they are explicit and IO is defined as follows: data World__ data IOResult a = FailIO World__ IOError |

Re: [Haskell] Long live Edison

2006-02-20 Thread Robert Dockins
On Feb 20, 2006, at 5:19 PM, [EMAIL PROTECTED] wrote: G'day all. Quoting Robert Dockins [EMAIL PROTECTED]: Although I am not a data structures expert, several weeks ago I decided that I would try my hand at maintaining Edison and see if I could overcome these barriers. Toward this end I

[Haskell] page renaming on the Haskell Wiki

2006-02-20 Thread Wolfgang Jeltsch
Hello, I just renamed several wiki pages. One reason for this renaming was the inconsistent capitalization of page titles. The thread starting with http://www.haskell.org//pipermail/haskell/2006-January/017485.html contains some background of this renaming. I think that a consistent and

Re: [Haskell] Long live Edison

2006-02-20 Thread John Meacham
On Mon, Feb 20, 2006 at 04:22:19PM -0500, Robert Dockins wrote: Sorry for replying to myself There are a number of methods which take a monad context and call 'fail' (rather than error) under some conditions, usually when the data structure is empty, e.g. lview :: Monad m = s a - m

Re: [Haskell] Long live Edison

2006-02-20 Thread John Meacham
On Mon, Feb 20, 2006 at 05:29:16PM -0500, [EMAIL PROTECTED] wrote: The problem with MonadPlus is that you don't actually need the Plus functionality. It is usually considered good design to only require what you need, and Monad already has fail. There has been some discussion on

Re: [Haskell] Long live Edison

2006-02-20 Thread Iavor Diatchki
Hello, On 2/20/06, John Meacham [EMAIL PROTECTED] wrote: I think the problem is that 'mzero' exists, the correct solution seems to be to get rid of the 'mzero' method of MonadPlus. Since haskell is lazy, all Monads have at least the zero of _|_ which can be overriden by 'fail' with a more

Re: [Haskell] Long live Edison

2006-02-20 Thread John Meacham
On Mon, Feb 20, 2006 at 05:10:02PM -0800, Iavor Diatchki wrote: On 2/20/06, John Meacham [EMAIL PROTECTED] wrote: I think the problem is that 'mzero' exists, the correct solution seems to be to get rid of the 'mzero' method of MonadPlus. Since haskell is lazy, all Monads have at least the

Re: [Haskell] Re: Question for the haskell implementors: Arrays, unsafePerformIO, runST

2006-02-20 Thread John Meacham
After reading all the interesting responses I decided to go with a slight generalization of my original idea, and it surprisingly turns out to have other generally useful unintended uses, which is the point that a 'hack' becomes a 'feature'. :) before I had a primitive: newWorld__ :: a - World__

Re: [Haskell] Long live Edison

2006-02-20 Thread Cale Gibbard
On 20/02/06, Iavor Diatchki [EMAIL PROTECTED] wrote: Hello, On 2/20/06, John Meacham [EMAIL PROTECTED] wrote: I think the problem is that 'mzero' exists, the correct solution seems to be to get rid of the 'mzero' method of MonadPlus. Since haskell is lazy, all Monads have at least the

Re: [Haskell] Long live Edison

2006-02-20 Thread ajb
G'day all. Quoting Cale Gibbard [EMAIL PROTECTED]: One thing which I found odd about the NotJustMaybe pattern is that not much is really gained apart from a small amount of convenience. That's not the whole truth. It buys you abstraction, in that the library function can signal an error

Re: [Haskell] Long live Edison

2006-02-20 Thread David Menendez
[EMAIL PROTECTED] writes: G'day all. Quoting Robert Dockins [EMAIL PROTECTED]: -- The Sequence 'rcons' method takes its arguments in the opposite order as the 'lcons' method (for mnemonic purposes). Should the arguments to 'rcons' be reversed? The argument is that they both take

Re: [Haskell] problems with Haskell 98's record system

2006-02-20 Thread Johannes Waldmann
Iavor Diatchki wrote: remove export lists, introduce public/private modifiers And it nicely deals with re-exporting imported entities: public imports get reexported, private ones don't. note though that the public/private thing in Java also refers to the package concept, which is missing

[Haskell] Re: Long live Edison

2006-02-20 Thread Paul Johnson
Robert Dockins [EMAIL PROTECTED] wrote: Consistency. Almost all the other API functions take the data structure argument last. This seems to be a kind of de facto standard and deviations from it are likely to cause confusion. I'd always assumed that the reason that data structure

[GHC] #701: Better CSE optimisation

2006-02-20 Thread GHC
#701: Better CSE optimisation -+-- Reporter: simonmar |Owner: Type: task | Status: new Priority: normal|Milestone:

Re: ghci command history broken under rxvt and xterm

2006-02-20 Thread Simon Marlow
Bruno Martínez wrote: When using ghci with rxvt under cygwin, the command history doesn't work. When I press the up arrow, for example, the cursor moves up, instead of showing the previous command. xterm has the same problem, but with cygwin's default console it works. I don't know where

Re: [GHC] #696: segmentation fault in ./genprimopcode (x86_64)

2006-02-20 Thread GHC
#696: segmentation fault in ./genprimopcode (x86_64) -+-- Reporter: taral | Owner: simonmar Type: bug | Status: new Priority: normal |

Re: [GHC] #697: Bad assembler generated

2006-02-20 Thread GHC
#697: Bad assembler generated -+-- Reporter: taral | Owner: Type: bug | Status: closed Priority: normal | Milestone:

Re: [GHC] #698: GHC's internal memory allocator never releases memory back to the OS

2006-02-20 Thread GHC
#698: GHC's internal memory allocator never releases memory back to the OS -+-- Reporter: guest | Owner: Type: bug | Status: new Priority: low |

Re: [GHC] #698: GHC's internal memory allocator never releases memory back to the OS

2006-02-20 Thread GHC
#698: GHC's internal memory allocator never releases memory back to the OS ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: low

Re: [GHC] #699: GHCi doesn't implement foreign import on amd64 when interpreting.

2006-02-20 Thread GHC
#699: GHCi doesn't implement foreign import on amd64 when interpreting. ---+ Reporter: guest | Owner: simonmar Type: bug | Status: new Priority: normal

Re: The make problem

2006-02-20 Thread Simon Marlow
Ian Lynagh wrote: It looks like the make problem is not going to be fixed in the next release of make (and the current release only works because of a bug): https://savannah.gnu.org/bugs/?func=detailitemitem_id=15584 I'm afraid I haven't followed carefully enough to know what the problem is

Re: [GHC] #700: Inconsistent typechecking of pattern match in function binding

2006-02-20 Thread GHC
#700: Inconsistent typechecking of pattern match in function binding ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: lowest| Milestone:

Re: UTF-8 decoding

2006-02-20 Thread Simon Marlow
Marcin 'Qrczak' Kowalczyk wrote: John Meacham [EMAIL PROTECTED] writes: Another possibility is quasi-utf8 encoding. where it passes through any invalid utf8 sequences as latin1 characters. in practice, this works very well as interpreting both latin1 and utf8 transparently but is more than

RE: proposal: standardize interface to Haskell' implementations

2006-02-20 Thread Simon Marlow
On 12 February 2006 22:43, Claus Reinke wrote: [an innocent question on ghc-users just reminded me of another missed opportunity in previous Haskell definitions: by chosing to ignore the very idea of implementations, they have left tool implementors in a limbo.] these days, there is

RE: the MPTC Dilemma (please solve)

2006-02-20 Thread Simon Peyton-Jones
With help from Martin Sulzmann and Ross Paterson, GHC (HEAD) now implements a richer form of functional dependencies than Mark Jones's version, but still decidable etc. The rules for what must appear in the context of an instance declaration are also relaxed. The specification is here:

Re: proposal: standardize interface to Haskell' implementations

2006-02-20 Thread Claus Reinke
| (*) a standard haskell' api providing the commands of ghci/hugs | style interactive systems would be a start, together with an | annotated AST, parser/typer/pretty printer. more detailed | specifications could be left for future revisions. A reasonable suggestion, but I'm unsure

Re: proposal: standardize interface to Haskell' implementations

2006-02-20 Thread Henrik Nilsson
Dear all, Claus Reinke wrote: what I have in mind are things to come, which would be quite different from the initial steps we could reasonably expect Haskell' to take. initially, a separate libary may be an acceptable start; but ultimately, I don't want two separate Haskell implementations

Re: Export lists in modules

2006-02-20 Thread Jared Updike
I am not sure if this has been mentioned before, but something I would really find useful is the ability to tell Haskell to export everything in a function except for some named functions. No one has responded so I thought I would make a suggestion about what the syntax might look like to do

Re: Export lists in modules

2006-02-20 Thread Christopher Brown
Jared, How about combining the two (since 'hiding' is already a reserved word): module Module hiding ( list, of, things, not, to, export ) where Everything gets exported except what you explicitly hide. Is this general enough? Are there reasons why this might not work? And does

Re: Export lists in modules

2006-02-20 Thread John Meacham
on this note, I thought it would be nice to do a 'mostly unqualified' import. import Foo qualified(foo,bar) which will have the effect of import Foo hiding(foo,bar) import qualified Foo(foo,bar) since usually you can import a whole module unqualified except for a few troublemakers.

Re: Pragmas for FFI imports

2006-02-20 Thread John Meacham
On Fri, Feb 17, 2006 at 01:45:27AM +0200, Einar Karttunen wrote: I would like to propose two pragmas to be included in Haskell' for use with FFI. One for specifying the include file defining the foreign import (INCLUDE in ghc) and an another for defining a library that the foreign import

Re: [Haskell-cafe] Numerical methods in Haskell

2006-02-20 Thread Bjorn Lisper
I finally got some time to answer Simon's posting: Simon P-J: | Between google searching and looking through the activity | report, I take it that no one has really developed serious | libraries for matrix manipulations, diff eqs, etc. | | Are there any practical reasons for this or is it just a

RE: [Haskell-cafe] library sort

2006-02-20 Thread Simon Peyton-Jones
Strangely, Hoogle isn't easy to find at haskell.org. I'm not sure where the best place to add a link would be: perhaps near the top of the libraries-and-tools page? It's all wikified now, so would someone like to add it somewhere appropriate? Simon | -Original Message- | From: [EMAIL

Re: [Haskell-cafe] Constructor classes implementation

2006-02-20 Thread Daniel Fischer
Am Freitag, 17. Februar 2006 03:34 schrieb Sean Seefried: Hey all, If you're interested in an implementation of constructor classes (type classes which can take constructors as arguments; already implemented in Haskell) please see: http://www.cse.unsw.edu.au/~sseefried/code.html This

Re: [Haskell-cafe] Numerical methods in Haskell

2006-02-20 Thread David Roundy
On Mon, Feb 20, 2006 at 11:47:49AM +0100, Bjorn Lisper wrote: (a) It's hard to compete with existing libraries. The obvious thing is not to compete; instead, just call them. But somehow that doesn't seem to be as motivating. Perhaps some bindings exist though? Hard to compete, yes. But on

Re: [Haskell-cafe] Numerical methods in Haskell

2006-02-20 Thread Bjorn Lisper
David Roundy: On Mon, Feb 20, 2006 at 11:47:49AM +0100, Bjorn Lisper wrote: (a) It's hard to compete with existing libraries. The obvious thing is not to compete; instead, just call them. But somehow that doesn't seem to be as motivating. Perhaps some bindings exist though? Hard to

Re: [Haskell-cafe] Haskell as scripting language?

2006-02-20 Thread Henning Thielemann
On Wed, 15 Feb 2006, Marc Weber wrote: Is there a way to use haskell as scripting language in a) your own project? b) other projects such as vim (beeing written in C)? For German readers, I put an example of a scripting task on that Wiki:

Re: [Haskell-cafe] module for probability distributions

2006-02-20 Thread Henning Thielemann
On Thu, 16 Feb 2006, Matthias Fischmann wrote: I wrote a module for sampling arbitrary probability distribution, so far including normal (gaussian) and uniform. http://www.wiwi.hu-berlin.de/~fis/code/ For those who need something like this: feel free to take it, it's BSD. For those who

[Haskell-cafe] getChar + System.Cmd.system + threads causes hangups

2006-02-20 Thread Einar Karttunen
Hello Using system or any variant of it from System.Process seems broken in multithreaded environments. This example will fail with and without -threaded. When run the program will print hello: start and then freeze. After pressing enter (the first getChar) System.Cmd.system will complete, but

Re: [Haskell-cafe] HaXml: ampersand in attribute value

2006-02-20 Thread Graham Klyne
Lennart Augustsson wrote: But speaking of HaXml bugs, I'm pretty sure HaXml doesn't handle % correctly. It seem to treat % specially everywhere, but I think it is only special inside DTDs. I have many XML files produced by other tools that the HaXml parser fails to process because of this.

Re: [Haskell-cafe] HaXml: ampersand in attribute value

2006-02-20 Thread Graham Klyne
Malcolm Wallace wrote: Lennart Augustsson wrote: But speaking of HaXml bugs, I'm pretty sure HaXml doesn't handle % correctly. It seem to treat % specially everywhere, but I think it is only special inside DTDs. I have many XML files produced by other tools that the HaXml parser fails to

Re: [Haskell-cafe] getChar + System.Cmd.system + threads causes hangups

2006-02-20 Thread Einar Karttunen
Here is a version that works fine: myRawSystem cmd args = do (inP, outP, errP, pid) - runInteractiveProcess cmd args Nothing Nothing hClose inP os - pGetContents outP es - pGetContents errP ec - waitForProcess pid case ec of ExitSuccess - return ()

Re: [Haskell-cafe] HaXml: ampersand in attribute value

2006-02-20 Thread Malcolm Wallace
Graham Klyne [EMAIL PROTECTED] wrote: Did you come across the HaXml test harness I created based on a subset of W3C conformance tests? http://www.ninebynine.org/Software/HaskellUtils/HaXml-1.12/test/ This covers all the parameter entity problems I fixed some time ago. Indeed, and an

RE: [Haskell-cafe] building ghc on win with gcc of cygwin, without cygwin1.dll (-mno-cygwin flag) ?

2006-02-20 Thread Simon Peyton-Jones
| Googling around I've found that there exists the -mno-cygwin flag which | you can use to not include this lib.. So would it might be possible to | get a ghc build not using cygwin.dll with just cygwin ? I don't know. It sounds plausible. But we only have enough resource to maintain one route

[Haskell-cafe] haskell programming guidelines

2006-02-20 Thread Christian Maeder
Hi, haskell admits many programming styles and I find it important that several developers of a prject agree on a certain style to ease code review. I've set up guidelines (still as plain text) for our (hets) project in

Re: [Haskell-cafe] haskell programming guidelines

2006-02-20 Thread Henning Thielemann
On Mon, 20 Feb 2006, Christian Maeder wrote: I've set up guidelines (still as plain text) for our (hets) project in http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/src-distribution/versions/HetCATS/docs/Programming-Guidelines.txt It seems we share the preference

Re: [Haskell-cafe] haskell programming guidelines

2006-02-20 Thread Robert Dockins
On Feb 20, 2006, at 12:48 PM, Christian Maeder wrote: Hi, haskell admits many programming styles and I find it important that several developers of a prject agree on a certain style to ease code review. I've set up guidelines (still as plain text) for our (hets) project in

Re: [Haskell-cafe] haskell programming guidelines

2006-02-20 Thread Robert Dockins
On Feb 20, 2006, at 2:26 PM, Henning Thielemann wrote: On Mon, 20 Feb 2006, Robert Dockins wrote: I personally disagree with your preference for custom datatypes with a value representing failure to lifting types with Maybe. I understood that part of the guidelines as a pleading for Maybe.

[Haskell-cafe] Re: Unexpected results with simple IO

2006-02-20 Thread Maurício
I'm also using GHC 6.4.1 and rxvt v2.7.10. The problem does occur in compiled code, but everything is OK in ghci! hFlush stdout did solve the problem, as expected. I've just started using rxvt. If you have tips on how to make ghci work well with rxvt, please share them with me (for

Re: [Haskell-cafe] haskell programming guidelines

2006-02-20 Thread Donald Bruce Stewart
maeder: Hi, haskell admits many programming styles and I find it important that several developers of a prject agree on a certain style to ease code review. I've set up guidelines (still as plain text) for our (hets) project in Perhas you'd like to put up a Style page on thew new Haskell

Re: [Haskell-cafe] Lazy read

2006-02-20 Thread John Meacham
On Thu, Feb 16, 2006 at 11:28:08PM +, Malcolm Wallace wrote: Essentially, rather than having an indication of success/failure in the type system, using the Maybe or Either types, you are asking to return the typed value itself, with no wrapper, but perhaps some hidden bottoms buried

Re: [Haskell-cafe] haskell programming guidelines

2006-02-20 Thread John Meacham
There is a more straightforward way to get localized error messages rather than using 'maybe' and hand-writing an appropriate error, and that is to rely on irrefutable bindings. f x = ... y ... where Just y = Map.lookup x theMap now if the lookup fails you automatically get an error

[Haskell-cafe] Re: Code completion? (IDE)?

2006-02-20 Thread Stefan Monnier
vim7 has introduced omni-completion... So I'm interested wether there are any projects which support any kind of completion.? I have been working on some code completion support for EclipseFP. It is right now in a really infant stage, but it at least is something. Just take a look at the

[Haskell-cafe] Re: Associated Type Synonyms question

2006-02-20 Thread Martin Sulzmann
Stefan Wehr writes: Martin Sulzmann [EMAIL PROTECTED] wrote:: Stefan Wehr writes: [...] Manuel (Chakravarty) and I agree that it should be possible to constrain associated type synonyms in the context of class definitions. Your example shows that this feature is actually

Re: [Haskell-cafe] Re: Unexpected results with simple IO

2006-02-20 Thread Emil Axelsson
Unfortunately, I don't know how to make the arrow keys work in rxvt. I'm not the right person to ask about such things... I don't think it's possible (unless GHC is built for Cygwin, or something). Does anybody else know? I use an alias alias ghciW='cmd /c start ghci' That way I can start