do-and-if-then-else modification

Ross Paterson ross at soi.city.ac.uk
Mon Feb 19 07:53:39 EST 2007


On Mon, Feb 19, 2007 at 11:16:03AM +0000, Malcolm Wallace wrote:
> And it now occurs to me that perhaps something different was
> intended.  The following is legal H'98:
> 
>     case whatever of
>     Cons -> bluh
>     Nil  -> foo
> 
> But stick it in a do block and it ceases to be accepted:
> 
>     do case whatever of
>        Cons -> bluh
>        Nil  -> foo

No, that's a separate issue: NondecreasingIndentation.



More information about the Haskell-prime mailing list