fixing issues listed in "gripes about haskell" (fixes bug #45)