| What am i doing wrong? You can't define functions on the Hugs command line. You need to put the function definition in a text (.hs) file and ask Hugs to read that file. J