Re: [Haskell] Haskell-mode 2.0

2009-02-02 Thread Stefan Monnier
A bit more than 4 years ago, you wrote: > Stefan Monnier wrote: >> This release has several changes that have all been only lightly tested, >> especially w.r.t compatibility with various Emacsen. > It works (as far as I tried) on my emacs: > GNU Emacs 21.3.1 (i586-suse-li

[Haskell] Re: IORef sharing

2008-10-27 Thread Stefan Monnier
>> iio :: IO (IORef Int) >> iio = newIORef 0 I sometimes feel like "IO" should be renamed to "CommandSequenceReturning". So the above would read: iio :: CommandSequenceReturning (IORef Int) iio = newIORef 0 I.e. iio is not an IORef Int but only a (trivial) sequence of commands that will end

[Haskell] Re: on starting Haskell-Edu, a new education-related Haskell-related mailing list

2008-07-14 Thread Stefan Monnier
> [EMAIL PROTECTED] (I like the plural better too, thanks Dan) > [EMAIL PROTECTED] > [EMAIL PROTECTED] FWIW, the GNU projects typically have mailing lists called "bug" for bug reports, and "help" for general discussions. So "help" sounds pretty good. But... bikeshed ahead! Stefa

[Haskell] Re: on starting Haskell-Edu, a new education-related Haskell-related mailing list

2008-07-11 Thread Stefan Monnier
> I participate in various lists and various forums. That Haskell uses > lists has crippled my participation here; I am quite sure I am not > alone. Nabble and the like do not substitute for real forum software. Funny, it's the first time I hear the argument in this direction. The only forums I

[Haskell] Re: How to define tail function for Even/Odd GADT lists?

2008-05-05 Thread Stefan Monnier
> However, we were not able to write a function that returns the tail. >> tailList :: Flip b c => List a b -> List a c >> tailList (Cons _ xs) = xs The problem here is that the caller will probably not know which "Flip b c". OTOH the Cons of type "List a b" already contains a "Flip b c" proof, s

[Haskell] Re: please HELP me to understand this code:| quickly:((

2008-02-13 Thread Stefan Monnier
> I fear our alacritous Neil will now be the unwilling recipient of Haskell > porn and Nigerian bank scams... :( M Haskell porn! Stefan ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] Re: refactoring, catamorphism, termination of programs

2007-05-01 Thread Stefan Monnier
> I'm looking for a tool that implements the source code transformation > "replace recursion by catamorphism" (fold etc.). > My application is that if the transformation succeeds, > it implies that the program terminates. (roughly) > I don't want to make a big research project out of this, > rath

[Haskell] Haskell-mode 2.3

2007-02-14 Thread Stefan Monnier
A few minor typos/thinkos plagued Haskell-mode 2.2, so here's 2.3. http://www.iro.umontreal.ca/~monnier/elisp/ No significant change, apart from the inclusion of a haskell-cabal-mode for Cabal description files (doesn't do anything useful, tho, other than highlight comments). St

[Haskell] Haskell-mode 2.2

2007-02-09 Thread Stefan Monnier
I've just released version 2.2 of the Haskell-mode package for Emacs. It has very few visible changes, mostly some commands to query an underlying interactive hugs/ghci in order to get type/info about specific identifiers, courtesy of Matthew Danish. It does have some non-trivial changes in the in

[Haskell] Re: Views in Haskell

2007-01-22 Thread Stefan Monnier
> Provoked by a discussion with Don Syme, and after some helpful > conversations at POPL, I have finally written up a proposal for adding > "view patterns" to Haskell. We've wanted views for a long time, but they > have never made it, into GHC at any rate. This proposal is a very > lightweight (a

[Haskell] Re: Haskell' Status Report

2006-09-28 Thread Stefan Monnier
> Ravi Nanavati has very helpfully put together a status report for the > Haskell Prime process. Please see this link, or read the pasted text > below: > http://hackage.haskell.org/trac/haskell-prime/wiki/Status' This wiki is really neat. I do wish there was some information in it about the imp

[Haskell] Re: lhs2TeX-friendly emacs mode?

2006-04-16 Thread Stefan Monnier
> Is there a Haskell emacs mode that works well with lhs2TeX? Specifically > (a) treating \begin{spec} ... \end{spec} like \begin{code}... \end{code}, > and (b) coloring inline code ("||)" and maybe inline verbatim > ("@@") as Haskell rather than LaTeX code. It'd be trivial to patch haskell-mode

[Haskell] Re: (small) records proposal for Haskell '06

2006-01-05 Thread Stefan Monnier
> This change "solves" the problem that different records in a single > namespace cannot share field names in a simple manner. As mentioned elsewhere, you'd also need to remove the functional update feature to fix this namespace problem. > In order to allow the writing of records code with is bot

[Haskell] Re: Functional dependencies and type inference (2)

2005-12-06 Thread Stefan Monnier
>> > instance CpsForm t t where >> This can't be right, can it? > In general no: the CPS of a function certainly doesn't fit the above > pattern. So, if the source language has abstractions (the language in > the original message didn't), we have to add another instance for > CpsForm. But any othe

[Haskell] Re: Functional dependencies and type inference (2)

2005-12-03 Thread Stefan Monnier
> instance CpsForm t t where This can't be right, can it? After CPS conversion a term of type "a -> b" won't have type "a -> b" but rather something like "a * (b -> c) -> c". Stefan ___ Haskell mailing list Haskell@haskell.org http://www.haske

[Haskell] Haskell-mode 2.1

2005-11-07 Thread Stefan Monnier
Haskell-mode 2.0 is now almost a year old, so I thought it was time to make a new release. You can find it at http://www-perso.iro.umontreal.ca/~monnier/elisp/ This release has few visible changes. Most of the changes are in the haskell-indent module. Those changes have not been heavi

[Haskell] Re: emacs haskell mode

2005-09-05 Thread Stefan Monnier
> Hmm. I use font-lock, but I use xemacs (21.4). Maybe that's the cause > of the difference. IIRC XEmacs's support for syntax-table text-properties (and more specifically for font-lock-syntactic-keywords) has been generally fairly late. I'd expect it to be fully working by now, but maybe only in

[Haskell] Re: emacs haskell mode

2005-09-05 Thread Stefan Monnier
> Sorry if I've asked this before, but is version 2.0 of haskell-mode on > your website really the newest version? It's the latest released version. There's newer code in the CVS, of course. > I ask because the file haskell-mode.el says "Version: 1.43" in the header, > and I thought I remembered

[Haskell] Re: Beyond ASCII only editors for Haskell

2005-05-22 Thread Stefan Monnier
> Jorge Adriano did something similar for Haskell with x-symbol: > http://www.haskell.org/pipermail/haskell-cafe/2002-August/003237.html Note that the latest haskell-mode has support for something similar (tho it works differently). But these are minor cosmetic tricks. Stefan _

Re: [Haskell] Re: xemacs & haskell major mode

2005-02-02 Thread Stefan Monnier
> However, the only use of that function which I can see in the > haskell-mode code is: >(and (fboundp 'make-char) (charsetp 'japanese-jisx0208) > So charsetp should only be called if the make-char function exists, > and that function should also only exist if XEmacs was built with the > MuLE

[Haskell] Re: Context of a pattern variable

2005-01-11 Thread Stefan Monnier
> case t of > (x, y, z) -> (x, y, z+1) How would you do: case t of (x, y, z, a, b, c) -> (x+1, y, z, a, b, c+2) would you allow: case t of (ctx @> x, _, _, _, _, ctx @> c) -> ctx (x+1) (c+2) -- Stefan ___ Haskell mai

Re: [Haskell] Haskell-mode 2.0

2004-11-26 Thread Stefan Monnier
> thanks for you work! The indentation works much better than > before. However, I have some feature requests/bugs: > - indentation in do monad: lines after "let" should have 2 possible > indentations. One for new let bindings (how it is currently) and one for > further monad expressions. Examp

Re: [Haskell] Haskell-mode 2.0

2004-11-26 Thread Stefan Monnier
> While playing with the new mode I discovered a small deficiency in the menu > "Declarations" -> "Imports" (that I've never used before). The names of the > imported modules are cut off after the first dot. Instead of > i.e. "Data.List" only "Data" is displayed. (There may be several dots in > a m

[Haskell] Haskell-mode 2.0

2004-11-25 Thread Stefan Monnier
I have recently taken over maintainership of Haskell-mode, and after making a bunch of changes, I figured it would be a good idea to make a new release. You can find this new release at: http://www-perso.iro.umontreal.ca/~monnier/elisp/ If you think it should also be found at http://www.

[Haskell] Re: Syntax Q: How do you share RHS's in case expressions!?

2004-10-24 Thread Stefan Monnier
> I'm baffled that I can't find anywhere in the documentation how to associate > two or more patterns with the same right-hand-side... It gets more interesting with things like: case x of ( ([],a) | (a,[]) ) -> .. a .. where the rewrite looks like: let foo a = ... in case x of ([],a) -

Re: Int vs Integer

1998-09-14 Thread Stefan Monnier
> "Jan" == Jan Skibinski <[EMAIL PROTECTED]> writes: > One of the myths was that Smalltalk was notoriously slow for > math. I checked this last time four years ago in a context > of comparative tests between Smalltalk and Eiffel interpreter Speed comparison of interpreters is pretty much poin