Re: DoAndIfThenElse

2009-11-26 Thread Ian Lynagh
On Thu, Nov 26, 2009 at 03:14:13PM +0100, Christian Maeder wrote: > David Virebayre schrieb: > > > > On Thu, Nov 26, 2009 at 10:29 AM, Christian Maeder > > mailto:christian.mae...@dfki.de>> wrote: > > > > I wonder why I still get a "parse error (possibly incorrect > > indentation)" for: >

Re: DoAndIfThenElse

2009-11-26 Thread Christian Maeder
David Virebayre schrieb: > > On Thu, Nov 26, 2009 at 10:29 AM, Christian Maeder > mailto:christian.mae...@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" > els

Re: DoAndIfThenElse

2009-11-26 Thread Christian Maeder
David Virebayre schrieb: > Isn't the proposal about : > > \begin{code} > main = do > if True then putStrLn "1" > ;else putStrLn "2" > \end{code} This should go through, too, but also does not for me according to http://hackage.haskell.org/trac/haskell-prime/wiki/DoAndIfThenElse Change the syn

Re: DoAndIfThenElse

2009-11-26 Thread Ian Lynagh
Hi Christian, On Thu, Nov 26, 2009 at 10:29:10AM +0100, Christian Maeder wrote: > > seeing Haskell 2010 and > http://hackage.haskell.org/trac/haskell-prime/wiki/DoAndIfThenElse > > saying: > Compiler support ¶ > GHC full (no flag) > > I wonder why I still get a "parse error (possibly incorre

Re: DoAndIfThenElse

2009-11-26 Thread David Virebayre
On Thu, Nov 26, 2009 at 10:29 AM, Christian Maeder 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 th

DoAndIfThenElse

2009-11-26 Thread Christian Maeder
Hi, seeing Haskell 2010 and http://hackage.haskell.org/trac/haskell-prime/wiki/DoAndIfThenElse saying: Compiler support ¶ GHC full (no flag) 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"