> Thanks Dean it help me a lot. > i'm not used to program in Haskell i usualy program in Java, > C, Prolog and Delphi. Another hint... GHC tends to have much better error messages than Hugs, and it has an interactive mode like Hugs (ghci) as well as a compiler (ghc). Available from the Haskell site. --KW 8-)