small test programs for haskell prolog scala