fixed warnings with haskell code