[Haskell-cafe] Code walking off the right edge of the screen

Alberto G. Corona agocorona at gmail.com
Thu Jun 25 04:36:53 EDT 2009


What about extending haskell (or ghc) with mixfix operators, Agda style?. At
first sigth it would permit the creation of custom control structures and
perhaps more readable DSLs.

2009/6/25 Stephan Friedrichs <deduktionstheorem at web.de>

> Henning Thielemann wrote:
> > [...]
> >
> > http://haskell.org/haskellwiki/Case
>
> Maybe we (i. e. someone with a wiki account ;) ) should add Jeremy's
> proposal - using let and guards - to the page (under section 2.2,
> "syntactic suger")? IMHO this is much clearer than "case () of _".
>
> foo =
>    let x | 1 > 1     = "uh-oh"
>          | otherwise = "all is well"
>    in x
>
> Regards,
> Stephan
>
> --
>
> Früher hieß es ja: Ich denke, also bin ich.
> Heute weiß man: Es geht auch so.
>
>  - Dieter Nuhr
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090625/d7585fa4/attachment.html


More information about the Haskell-Cafe mailing list