DoAndIfThenElse

David Virebayre dav.vire+haskell at gmail.com
Thu Nov 26 07:05:28 EST 2009


On Thu, Nov 26, 2009 at 10:29 AM, Christian Maeder <Christian.Maeder at dfki.de
> wrote:

I wonder why I still get a "parse error (possibly incorrect
> indentation)" for:
>
> \begin{code}
> main = do
>  if True then putStrLn "1"
>  else putStrLn "2"
> \end{code}
>
>
Isn't the proposal about :

\begin{code}
main = do
 if True then putStrLn "1"
 ;else putStrLn "2"
\end{code}

?

David.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-prime/attachments/20091126/1f47d429/attachment.html


More information about the Haskell-prime mailing list