Re: Shall the Haskell Report remain in LaTeX?

2017-10-31 Thread Doaitse Swierstra
The good thing about laTeX is that out of all the candidates it is the most likely one to still work 40 years from now, Doaitse > Op 9 sep. 2017, om 15:40 heeft Herbert Valerio Riedel > het volgende geschreven: > > Hello *, > > On 2017-09-08 at 00:46:52 +0200, Mario Blazevic wrote: >

Re: Bang patterns

2013-02-08 Thread Doaitse Swierstra
I prefer them to be part of the context-free syntax, since this enables a future extension in which an arbitary expression can be placed between backticks. This would enable one to write things as: x `f i` y and expr1 `expr2` expr3 is to be interpreted as (expr2) (expr1) (expr3), Doaitse

Re: In opposition of Functor as super-class of Monad

2012-10-24 Thread S. Doaitse Swierstra
There are very good reasons for not following this road; indeed everything which is a Monad can also be made an instance of Applicative. But more often than not we want to have a more specific implementation. Because Applicative is less general, there is in general more that you can do with it.

Re: In opposition of Functor as super-class of Monad

2011-01-05 Thread S. Doaitse Swierstra
On 4 jan 2011, at 11:24, o...@okmij.org wrote: > > I'd like to argue in opposition of making Functor a super-class of > Monad. I would argue that superclass constraints are not the right > tool for expressing mathematical relationship such that all monads are > functors and applicatives. > > It

Re: Add haskell-src as an official machine-readable component of the Haskell standard

2010-11-17 Thread S. Doaitse Swierstra
On 17 nov 2010, at 16:21, Ben Millwood wrote: On Wed, Nov 17, 2010 at 8:52 AM, Yitzchak Gale wrote: >> Reading this proposal I think it clearly states my point made earlier: >> allowing infix specifications everywhere provides unneeded flexibility and >> unnecessary complexity. >> >> Ideally

Re: Add haskell-src as an official machine-readable component of the Haskell standard

2010-11-17 Thread S. Doaitse Swierstra
Reading this proposal I think it clearly states my point made earlier: allowing infix specifications everywhere provides unneeded flexibility and unnecessary complexity. Ideally I would like to see them even before the module keyword: they state how to read the text that follows, and thus fa

Re: new keyword: infixlr?

2010-09-10 Thread S. Doaitse Swierstra
On 10 sep 2010, at 20:13, Ian Lynagh wrote: > On Fri, Sep 10, 2010 at 07:51:10PM +0200, S. Doaitse Swierstra wrote: >> >> Currently Haskell has infix, infixl and infixr operators. I see a use for >> infixlr as well. This indicates that the implemtation may assume t

new keyword: infixlr?

2010-09-10 Thread S. Doaitse Swierstra
Currently Haskell has infix, infixl and infixr operators. I see a use for infixlr as well. This indicates that the implemtation may assume the operator to be associative, and thus has the freedom to "balance" an expression containing several operator occurrences. The reason that I bring up thi

Re: Negation

2010-02-14 Thread S. Doaitse Swierstra
010, at 11:56 AM, Simon Marlow wrote: On 09/02/10 21:43, S. Doaitse Swierstra wrote: One we start discussing syntax again it might be a good occasion to reformulate/make more precise a few points. The following program is accepted by the Utrecht Haskell Compiler (here we took great effort to fo

Re: Negation

2010-02-10 Thread S. Doaitse Swierstra
On 10 feb 2010, at 10:40, Sebastian Fischer wrote: On Feb 9, 2010, at 10:43 PM, S. Doaitse Swierstra wrote: -- but if we now unfold the definition of one we get a parser error in GHC increment' = ( let x=1 in x + ) The GHC and Hugs parsers are trying so hard to adhere to the

Re: Negation

2010-02-09 Thread S. Doaitse Swierstra
One we start discussing syntax again it might be a good occasion to reformulate/make more precise a few points. The following program is accepted by the Utrecht Haskell Compiler (here we took great effort to follow the report closely ;-} instead of spending our time on n+k patterns), but no

nomination for Haskell 2011

2009-12-23 Thread S. Doaitse Swierstra
Herewith I propose Atze Dijkstra as a member of the Haskell 2011 committee. Atze is the main architect/implementor of the Utrecht Haskell Compiler (see http://www.cs.uu.nl/wiki/UHC, and last year Haskell Symposium), and has as a result of that a very good insight in the implementation iss

Re: [Haskell-cafe] Why does Haskell have the if-then-else syntax?

2006-07-28 Thread Doaitse Swierstra
r the time being you may resort to our attribute grammar system, which basically generates such catamorphisms 9and matches nicely with our parser combinators too): http://www.cs.uu.nl/wiki/HUT/AttributeGrammarSystem Doaitse Swierstra ___ Has

Re: Alternatives to . for composition

2006-03-27 Thread Doaitse Swierstra
ables. You can also activate the TeX input method using C-u C-\ TeX RET (if leim is installed). Then you can insert many characters by typing their TeX names. The character ∘ can be inserted by typing \comp, for instance. Doaitse Swierstra ___ Ha

Re: the dreaded offside rule

2006-03-09 Thread Doaitse Swierstra
'(case x of p -> e, 42)'. Where one of course should have written: (case x of p -> e; , 42) or even (case x of p -> e;;, 42) I am just giving this to show to those who claim that things are simple are probably overlooking things, Doaitse ___

Re: small extension to `...` notation

2006-03-09 Thread Doaitse Swierstra
Some questions were raised. Let me start withbynoticing that all I am interested in is a very small extensions, without creating more problems than solving, so I could perfectly live with: - no `...` inside `...`. If you really need this you use parentheses - the first element between the `

Re: the dreaded offside rule

2006-03-09 Thread Doaitse Swierstra
On 2006 mrt 09, at 1:54, Lennart Augustsson wrote: I agree with it being complicated. I don't know of any compiler that implements it correctly. Do you say your combinators do? At least we think so. The way to use it is e.g.: pExprPrefix =sem_Expr_Let <$ pKey "let" <*> pDecls <* p

the dreaded offside rule

2006-03-08 Thread Doaitse Swierstra
extends to the lower right of its first character. Doaitse Swierstra ___ Haskell-prime mailing list Haskell-prime@haskell.org http://haskell.org/mailman/listinfo/haskell-prime

small extension to `...` notation

2006-03-08 Thread Doaitse Swierstra
to Haskell, which does not break anything existing, and provides yet another opportunity to beautify one programs, especially in combination with programs like lhs2TeX. Doaitse Swierstra ___ Haskell-prime mailing list Haskell-prime@haskell.org h