From: Daan L. <daa...@xs...> - 2003-12-07 11:08:06
|
Sorry for the previous mail, I accidently hit "ctrl-enter"... Hi Gaby > The compiler prompts this error > menuprincipal.hs:23: The last statement in a 'do' construct must be an expression You probably have a layout error. This is a general Haskell syntax issue and you may find more information on the Haskell faq or wiki pages. anyhow: 1) replace all you "tab" characters by whitespace 2) neatly align all the statements in the "do" expression 3) check if all parenthesis match 4) and you might even add a "return ()" statement at the end to be safe and things should work ok again. All the best, Daan. |