> real :: Parser String
> real = do
>  d <- decimal
>  f <- option "" $ do
>    p <- char '.'
>    n <- many1 digit
>    return $ p : n

Just to throw two bits in here, this is the only style that doesn't
require leaning on the space bar and squinting to line things up,
doesn't require any fancy editor support, and looks fine with
proportional fonts.  It also allows you to move lines around with 'dd'
and 'p' in vi :)
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to