[Haskell-cafe] ANN: moe html combinator

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sun Aug 30 16:21:04 EDT 2009

On Aug 30, 2009, at 14:56 , S.Doaitse Swierstra wrote:
> On 28 aug 2009, at 08:11, Jason Dusek wrote:
> 2009/08/27 Bulat Ziganshin <bulat.ziganshin at gmail.com>:
>>> ...stop reusing Prelude operators, in particular, replace "-"
>>> with "$"?
>> I have to say, the `$ do` construct is an eyesore and `- do` is a
>> lot easier on the eyes.
>> Would it introduce ambiguity in the Haskell grammar if
>>  foo do...
>>  foo case...
>>  foo if...
>> were always parsed as:
>>  foo (do...)
>>  foo (case...)
>>  foo (if...)
> For the first two it would not make a difference, since they are  
> essentially closed constructs, following the offside rule which  
> inserts a } at the place where they end, so this cannot give rise to  
> an ambiguous interpretetation. One might even argue that their  
> current precedence level in the Haskell definition is "suboptimal".
> The "if" is a different thing, due to the absence of offside rules  
> for if.

mapM.  And yes, I know about forM; are there any other examples of this?

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090830/12b7d1a9/PGP.bin

More information about the Haskell-Cafe mailing list