On Wed, 24 Jul 2002 19:13:22 +0100 (BST) Junjie Xu <ceejx@cee.hw.ac.uk> wrote: > uni :: IO () -> Float > uni = do > xs <- newStdGen > let > m = (head (randoms xs) :: Float ) let x = expr in something You miss the "in something" part... quite that simple. Vincenzo